I was creating a dynamic table where a new row is added on a button click. This table contains a column called Delete. Whenever, delete a-link is clicked, the corresponding row is to be deleted. But my jquery is not working.
The snippet that deletes entry from table is:
$(".delRow").click(function()
{
alert("Called");
$(this).parents('tr').first().remove();
}
);
Here is the jsfiddle LINK
Update: Please Note I am successfully able to delete those row which are not added dynamically. Even the alert is not invoked when I click on Delete a-link column of the row added dynamically.