Implementing delete rows with checkboxes?

Implementing delete rows with checkboxes?

n00b0101n00b0101 Posts: 2Questions: 0Answers: 0
edited March 2010 in General
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...

Replies

  • poohandaepoohandae Posts: 1Questions: 0Answers: 0
    edited January 2011
    It's work!!
    [code]
    function deleterows(){
    var oTable = $('#Table1').dataTable();
    var sData = jQuery('input:checked', oTable.fnGetNodes()).serialize();
    var aTrs = oTable.fnGetNodes();
    for ( var i=0 ; i
  • anjibmananjibman Posts: 115Questions: 10Answers: 0
    What's the use of having code on line 03. It works without this line also. Or am I missing something?
This discussion has been closed.