Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

delete single row

$
0
0
This is the relevant PHP:

$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?

Viewing all articles
Browse latest Browse all 1816

Trending Articles