selected rows for few record's
selected rows for few record's
Abhishekvyas
Posts: 2Questions: 1Answers: 0
Hi
I am working on this j query data tables first time ,
I need to achieve one task i.e I have 5 record's in jquery datatable now I want to show 2 row's selected out of 5( on base of ID) how can I achieve this any idea .
This discussion has been closed.
Answers
You're going to want this: http://datatables.net/examples/api/select_row.html
Just change the function from being called on a button click to whatever you wish.
Hi Modgility,
Thank you for your quick reply ,
What I want is let say I have 5 record's in jdatatable and 4 Column's (Name , lastname, mobile number and ID) now I bind that jdatatable with JSON.
Now I have button click when I click on that I get ID's which is already available in Jdatatable LET say we have ID in ID column is(1,2,3,4,5) and when I click on button I get ID(1,3) at that time I want in Jdatatable those row's should show as selected row's
Hope you get my question , sorry for confusion
Thanks
Abhishek