I am looking for some tips on how to solve my problem.
I have an html element (e.g. select box input field) in a table. Now I want to copy the object and generate a new one from the copy, as well as using JavaScript or jQuery. I think this should work somehow, but I'm a little clueless at the moment.
Something like this (pseudo code):
oldDdl = $("#ddl_1").get(); newDdl = oldDdl; oldDdl.attr('id', newId); oldDdl.html();
javascript jquery clone elements
Richard May 28 '09 at 2:58 p.m. 2009-05-28 14:58
source share