This is the relevant PHP:
This results in output of:
What I would like to do is remove that row from the list, and then write a message above the table to the effect of "You have successfully removed this item."
jQuery I wrote is not working:
actually there is no reaction for click.
I have tried this one also no reaction too.
Anyone have some advice? where is Problem?
$sOutput .= '" <a href=\"#\" id=\"deleteRow\" >Delete</a> ",';
This results in output of:
<td class=""><a href="#" id="deleteRow">Delete</a> </td>
What I would like to do is remove that row from the list, and then write a message above the table to the effect of "You have successfully removed this item."
jQuery I wrote is not working:
$('a.deleteRow').click(function() { $(this).parents('tr').remove(); });
actually there is no reaction for click.
I have tried this one also no reaction too.
$('a.deleteRow').click(function() { alert("wait..."); });
Anyone have some advice? where is Problem?