JQuery Adicionar opção para selecionar
//add option to select with jQuery
$('#selectID').append($('<option>', {
value: 1,
text: 'Option Text'
}));
Grepper
//add option to select with jQuery
$('#selectID').append($('<option>', {
value: 1,
text: 'Option Text'
}));
$.each(items, function (i, item) {
$('#mySelect').append($('<option>', {
value: item.value,
text : item.text
}));
});
$("#selectList").append(new Option("option text", "value"));
Here , object contains the list of values
$.each(obj , function (key, value) {
$('#GroupName').append($('<option>',
{
value: value.id,
text: value.Group_Name
}));
Add option to a select list of picklist