I have created one html table,each row has checkbox. i want that when i click on checkbox., all the caption in that rows should be displayed with textbox,so that i can edit that.in short i want mu开发者_JS百科ltiple row edit functionality.
Here is a cool JQuery plugin that might suit your needs, check out the live demos.
Hope this helps
Luke
For this purpose you will need not only PHP, but also a client-side scripting language like JavaScript. But actually I did not understood your question. You want the whole script written, or suggestions how to do it? Please be more specific.
You're going to have to use Jquery to get the parent of the checkbox. Using that parent id get each column in the parent and replace the label with a textbox containing the original text.
On completion of the edit using that parent id repeat the above step, but this time replace the textboxs with labels containing the text of the textboxes.
A far easier way would be to use jqgrid plugin (http://www.trirand.com/blog/) for jquery which already does all this functionality for you.
精彩评论