Clone with Select values
Clone with Select values
Hi,
I discovered recently that for some reason when you clone a form the select values aren't copied over. It seems to be something a few people run into so I came up with this function that would work for select values.
[code]function cloneForm(id, withEvents)
{
var clone = $(’#'+id).clone(withEvents);
var selvals = [];
$(’#'+id+â€