Possible Duplicate:
Copy option list from dropdownlist. JQuery
In Jquery how do you copy options of one dropdown to another dropdown?
You can do something like this:
$('#destination').html($('#source').html());
or
$('#destination').append($('#source').html());
$('something').html() grabs the html from an element.
$('something').html('something') replaces the current html from the element with the new html.
$('something').append('something') puts the new html at the end of the old html in the element. (this does not replace).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With