I have a div with a button inside that must update the same div...
Example
<div id="result">
  <a href="#" class="item" data-value="ok">click</a>
</div>
$( "a.item" ).click(function() {
  val = $(this).data("value");
  alert(val);
  $("#result").html('<a href="#" class="item" data-value="ok">click</a>');
});
but the button works only first time
This is jsfiddle https://jsfiddle.net/d8w4nsev/
