$(“#id option”).hide(); not working on safari/chrome?

harleshinn

New Member
Same for:\[code\]$("#id option").show();\[/code\]I'm just surprised. I thought that something went wrong with my code. I tried it with a blank html:\[code\]<select id = "name"> <option>1</option> <option>2</option></select>\[/code\]Javascript:\[code\]?$("#name option").hide();?\[/code\]http://jsfiddle.net/kgLkt/It works like a charm with firefox, but not on safari nor chrome!Is there a substitute?!EDIT:I need to hide/show the option (or some of them) from appearing in the list.
 
Top