What's wrong with this jQuery code? -
i have 50 lines of jquery on site. when add line
var img1 = "url('/wp-content/themes/thesis_18/custom/images/map.jpg') repeat"; $(".submit").click(function(){ $("body.custom").css({background: img1}); }); it still works fine, when add following long list of elements (see below) css .fadeout(1000) breaks jquery on site. don't see what's wrong new line and, indeed, tested simple idea in fiddle http://jsfiddle.net/mjmitche/fbnrr/6/
do see what's wrong code below it's stopping on site?
$(".submit").click(function(){ $("#topnav4, #cloud1, #cloud2, #cloud3, #cloud4, #cloud5, #cloud6, #intro1, #intro2, #contactform").fadeout(1000) $("body.custom").css({background: img1}); });
you miss ";" @ end of fadeout() !!
in fiddle, have jslint button verify javascript code...
Comments
Post a Comment