Ok, I'll try to explain it better.
I've a html table, in the first row I've a radio selector (ptype).
When changed to a particular value, it adds a row (id=adder_X_X) containing 2 links : "sub-serie" and "element".
When clicking on "element", I want to add some HTML code
before this row. If you click twice on this link, you'll add twice the HTML.
When you click on sub-serie, it adds a new row id=adder_X_X (the values of X change)
after the current and the links run the same way, but before and after this new row.
My trouble is not to add the row in the DOM, my trouble is that the way I do it doesn't let me treat it as a "static" DOM element.
Current code:
http://jsfiddle.net/RLABQ/