I have a favorites list that has many options. Depending on the input, I want to hide several options from the selection list. To hide the options from the select list, I wrote jquery as
$('#selectlist1 option').each(function(){
$(this).hide();
})
But this code only works for firefox and does not work on chrome, etc. If i write
$('#selectlist1').hide();
It works for all browsers. Any pointer I should look at?
ninja source
share