Following is my code 

```
$(document).ready(function () {
      $(document).on('click', '.delete', function (event) {
          event.preventDefault();
          var id = $(this).closest('.row').attr('id'); // row ID 
          alert(id);
          var i = confirm("Want to Delete this");
          if (i === true) {

              $("#" + id).remove();
          }
      });
  });

```

This code is not working properly on clicking any element on row it is removing content and not asking `Want to delete this`
Code should only activate on click `.delete`

This is my fiddle <http://jsfiddle.net/RHKhw/>

How to correct it.