user392399
user392399

Reputation: 21

textbox visibility

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 multiple row edit functionality.

Upvotes: 0

Views: 226

Answers (3)

Luke
Luke

Reputation: 3353

Here is a cool JQuery plugin that might suit your needs, check out the live demos.

Hope this helps

Luke

Upvotes: 2

Bob
Bob

Reputation: 3084

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.

Upvotes: 0

o15a3d4l11s2
o15a3d4l11s2

Reputation: 4059

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.

Upvotes: 1

Related Questions