javascript - jQuery toggle() not working in FF3.0.12 -
I have a jquery code (toggel) that works fine in IE6 but FF3 does not have reason or solution It is possible.
& lt; Button & gt; Toggle me & lt; / Button & gt; & Lt; P & gt; Hi & lt; / P & gt; & Lt; P & gt; Learning JQuery & lt; / P & gt; Jquery:
$ (function () {$ ("button"). Click (function () {$ ("p"). Toggle ("slow")}}}}); CSS:
P {background: #dad; thickness of font: bold; font- Size: 16px;}
I will be tilted to use
< Instead of & lt; input type = "button" id = "button" value = "toggle me" />
and then change your code
$ (function () {$ ("# button"). Click (function () {$ ("w Toggle ("slow");});});
You remember after the ; toggle ("slow") IE could have forgiven you, but other browsers might be less forgiving.
Comments
Post a Comment