jQuery Click function doesn't work on Chrome

River

New Member
I want to put menu's style switcher on my site but it doesn't work on Chrome / IE / Safari (works well on FireFox). Here's some code:\[code\] // Menu Style Switcher $("#option-1").click(function(){ $("#navigation").removeClass("style-2"); }); $("#option-2").click(function(){ $("#navigation").addClass("style-2"); });<div class="menu-style"> <select> <option id="option-1">Style 1</option> <option id="option-2">Style 2</option> </select></div>\[/code\]
 
Back
Top