I have a dynamic table that I want to attach <col>
elements with jQuery.
I have this:
var tds = jQuery("tr > td").length; // count how many tds
jQuery("#colgroup-compare > col").clone() // clone
.appendTo('#colgroup-compare'); // and append
Obviously this only appends 1 <col>
, I want to append (n) numbers. How would I do this?
I have the length, I have the clone ability, now how do I combine it?
– user1737413 Oct 11 '12 at 09:33