By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,137 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

html table Edit and Delete

P: 5
Is there a way to edit a html table row by clicking one of the button in one of the in the table.i want the cell values separately out in text box.after modifying and submitting the values it must be modified in the table.How?help me
Sep 13 '06 #1
Share this Question
Share on Google+
3 Replies


JohannC
P: 15
Is there a way to edit a html table row by clicking one of the button in one of the in the table.i want the cell values separately out in text box.after modifying and submitting the values it must be modified in the table.How?help me
What Programming Language are you using ?
.Net has a Control called a datagrid which will work great for this purpose, but you can do this in html by giving each row an ID and checking which row was clicked , once you know which row was clicked you can get the text out of the Table Cell by Using the Dom Object <------- Google This . You can create a <input type = text > on the onclick and set the text of the newly created textbox to the Cell Text for editing.

Then by saving you can then set the cell text back to the textbox text.
Sep 13 '06 #2

P: 5
What Programming Language are you using ?
.Net has a Control called a datagrid which will work great for this purpose, but you can do this in html by giving each row an ID and checking which row was clicked , once you know which row was clicked you can get the text out of the Table Cell by Using the Dom Object <------- Google This . You can create a <input type = text > on the onclick and set the text of the newly created textbox to the Cell Text for editing.

Then by saving you can then set the cell text back to the textbox text.
i am not using datagrid as in .net.i am using only html tables.I need to edit and delete a record on the database through the this table using edit and delete button in each row.i need samples and i cant understand this.i am new to javascript,please...
Sep 14 '06 #3

P: 5
i am not using datagrid as in .net.i am using only html tables.I need to edit and delete a record on the database through this html table using edit and delete button in each row(similar to datagrid edit and delete).i want to do it in javascript(not any other third party tools).i need samples and i cant understand this.i am new to javascript,please...
Sep 14 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.