Posts by Eduardo Onofre de Freitas • 41 points
3 posts
-
0
votes2
answers1147
viewsA: How to use fadein() to change background color?
Try using the animate, I know div works but I don’t know in body. $("body").animate({ backgroundColor: selectedcolor }, 1000); I couldn’t test because I’m on my cell phone, but I think it’s gonna…
-
2
votes2
answers492
viewsA: jQuery, native window.width() and window.on resize in the same condition
You can further reduce your code. $(window).on("resize", function(){ if($(this).width() > 800) { // BLAH BLAH BLAH } }); $(window).trigger('resize'); // Aqui você usa o 'trigger' para chamar o…
-
2
votes8
answers12405
viewsA: How to switch between true and false checked input?
You can use this same code only with a few changes at the time you change the "checked". (function($){ $("label").click( function(){ var idcheck = $(this).attr("for"); var checkedStatus =…