Hello,
I need some help. I hope I can explain this clearly. I would like to write a script that will allow me to enter values in a text box (ex: type in John) and I click an add button to the right of the text box and then below, it adds a row with a default label (ex: ID Name:) in the 1st column and beside it in the 2nd column will be a readonly textbox with the value that was typed in the above text box (ex: John). Also, beside each added row will have a delete button for me to delete the row. I should be able to enter a value and add as many rows for the related value added as I need. Each new row should have a row counter as well. Any help will be greatly appreciated!
I have added a shell of a sample below:
Code:<html> <head> <title></title> </head> <body> <input name="" type="text"><input name="" type="button" value="Add"> <h3>Dynamically Handeled Table</h3> <table width="450" border="1" cellspacing="0" cellpadding="0" id="mytable"> <tr> <td>1</td> <td>ID Name:</td> <td><input name="" type="text" readonly="" value="Mary"></td> <td><input name="" type="button" value="Delete"></td> </tr> <tr> <td>2</td> <td>ID Name:</td> <td><input name="" type="text" readonly="" value="John"></td> <td><input name="" type="button" value="Delete"></td> </tr> </table> </body> </html>



Reply With Quote

Bookmarks