In my database, I have to edit some entries only. It means that I have to limit the edit function to some rows such as my primary key...how can I do this with data tables? thanks.
On the posts of bakayn in the 2 pages you suggested, in what page can I find this ---- jQuery('table.styleTable tbody tr td:nth-child(7)').editable( { .... } ); ?
So that selector will just make only the 7th element in a row (i.e. the 8th column in the table as a whole) editable. So all you need to do if get the selector that you want, and will match the rows that you want to be editable and use that.
Replies
Have a look at these two threads, which discuss this very topic:
http://datatables.net/forums/comments.php?DiscussionID=591
http://datatables.net/forums/comments.php?DiscussionID=529
Basically you just need to use a particular selector when initialising jEditable.
Regards,
Allan
Please help me on this. Thanks
So that selector will just make only the 7th element in a row (i.e. the 8th column in the table as a whole) editable. So all you need to do if get the selector that you want, and will match the rows that you want to be editable and use that.
Regards,
Allan