If I use this
$("select option").attr("selected", "true");
Or
$(function(){
$('select').children('option').attr('selected', 'selected');
});
the list of dropdown will be selected automatically.
But in my position I should not use Iterator. Here both function using iterator. Here each and every option we set true or selected through iterator.
I need like if I set true to object of list, all the value of list should be selected without using loop or iterator.