jQuery .hide() not working [closed]
I wrote a simple jQuery script and the .hide() is not properly rendering. You can see it here on jsfiddle.
Fixed that for you. You didn't have jQuery selected on the left (you had mooTools).
You don't have the jQuery library selected on jsfiddle. Works for me once I add the library:
http://jsfiddle.net/YR6fL/
You can not expect jQuery methods to run with not jquery but Mootools loaded. Check your fiddle again http://jsfiddle.net/VBhYT/8/
update the JQuery library on the left side
Set your fiddle to use jQuery instead of Mootools and the .hide()
works http://jsfiddle.net/jfriend00/VBhYT/6/.
it started working when I updated the library to use Jquery 1.6.2. you had it set on mootools.
here: http://jsfiddle.net/anilkamath87/VBhYT/4/
try this .css('display', 'none')
精彩评论