var myOptions_bench = {
1 : '1',
2 : '2',
3 : '3'}
$.each(myOptions_bench, function(val, text) {
$('#test').append(
$('<option></option>').val(val).html(text)
);
Here i want to load my own details.(Some times 1 to 3 some times 5 to 50). Dynamically i want to change the options. for loop is not working here.
Please do the needful. Thanks
try something like this