Skip to main content

Posts

Showing posts from July, 2014

Dynamically Add/Remove Rows in HTML Table Using Javascript

Following code snippet will show how to dynamically add/remove rows in Table using simple HTML and Javascript :

Source Code :
HTML Table : <table cellspacing=0 cellpadding=0 border=0 border-spacing=10px id="attributes_configuration_table"> <thead> <tr> <th><b>Name</b></th> <th><b>Value</b></th> </tr> </thead> <tbody> <tr id="row_1"> <td> <input type="text" name="attribute_name_1" id="attribute_name_1" style="margin-right:10px" autocomplete="off"> </td> <td> <input type="text" name="attribute_value_1" id="attribute_value_1" style="margin-right:10px" autocomplete="off&qu…