Implementing delete rows with checkboxes?
Implementing delete rows with checkboxes?
I know that there's a way to delete if you highlight each row and click select, and I know that there's a way to implement checkboxes in the table... What I don't know is how to combine the two :) I'm very new to jquery, so if someone can tell / show me / provide links / help in any way whatsoever as to:
how to include a checkbox in each row of the table
allow a user to select some of them
click a "Delete" button
post the values of the checkboxes to a php script
remove the row from the table
That would be awesome. I know it's a lot to ask... I'm reading jquery docs, and the usage docs here, but I'm still horribly confused...
how to include a checkbox in each row of the table
allow a user to select some of them
click a "Delete" button
post the values of the checkboxes to a php script
remove the row from the table
That would be awesome. I know it's a lot to ask... I'm reading jquery docs, and the usage docs here, but I'm still horribly confused...
This discussion has been closed.
Replies
[code]
function deleterows(){
var oTable = $('#Table1').dataTable();
var sData = jQuery('input:checked', oTable.fnGetNodes()).serialize();
var aTrs = oTable.fnGetNodes();
for ( var i=0 ; i