0

I have to dynamically add table on pressing the add table button(on clicking a button) and have to change the table id so that the new table will have different id with different

<table id="dataTable">
   <tr>
      <td>FACILITY</td>
      <td><select id="select1" onchange="loadxml2()" ></select></td>
   </tr>
<table>

in the code above on clicking the add button(which i have not created) table should reappear with id select id select1 changed to select2.Can anyone help??.Got struck up with this for a long time.

Vinoth Krishnan
  • 2,925
  • 6
  • 29
  • 34
  • 1
    http://stackoverflow.com/questions/19066966/how-to-dynamically-create-row-and-column-of-table-in-jsp-page – Kamlesh Arya Feb 01 '14 at 09:02
  • Use clone, check this example out http://stackoverflow.com/questions/10126395/how-to-jquery-clone-and-change-id – Zach Feb 01 '14 at 11:17

0 Answers0