"On click of a button, i
> add tables dynamically (using the 1st table as a template) to the page
> (using DOM + js).
> Hence i end up with multiple tables with duplicate id's"


Have a counter of some sort, like a global variable like

var TableCount = 0;

when you add, append this value to the id and increment it for the
next added table

To select all these tables, it's simply:

$("table[id^='Instructions']")

that would grab all tables that "have an ID that starts with
instructions"

Reply via email to