The Best way to add options to an existing select tag using jQuery is
$.each(selectValues, function(key, value) {
$('#mySelect')
.append($("")
.attr("value",key)
.text(value));
});
Comments
Post a Comment