Originally posted by RAVI KHARVI:
how to add or remove rows in javascript at dynamicaly
Well,
1) You could represent every row as a separate table giving each table a unique id. And then toggle around with the table's
style.display property to show and hide the tables.
2) Instead of having separate tables for every row, you can try and toggle with the
style.display property of the <tr> elements. This will work fine with IE but other browsers don't really allow this behaviour. For cross browser operation, you can try changing the className of the <tr>'s: where one class has a property {display:none;} and the other has nothing.
3) You can alter the innerHTML property of the table, but this is often very cumbersome.
[ April 04, 2008: Message edited by: Anirvan Majumdar ]