I have a table with on each row there is a column with a delete button with id="hiderow".
What I want is to hide that specific row when the button on that row is clicked. I have this code for this:
$(document).ready(function(){
$("#hiderow").click(function(){$(this).parents("tr").hide(); })
});
The crazy thing is that it only works for the first row. If I do it for the second or other rows it does not work. How can I solve this?