I have a select lists, which has lots of option. Depending on some input I want to hide few options from select list. To hide options from select list I have written jquery like
$('#selectlist1 option').each(function(){
$(this).hide();
})
But this code seems to work only for firefox and its not working on chrome and ie. Whereas if I write
$('#selectlist1').hide();
it works for all browser. Any pointer where should I look at?