Jump to content

Working with traditional JS but not Jquery


Guest

Recommended Posts

Hey, I'm new to Jquery and I'm wondering what my mistake is here, it's working fine with JS!

 

Js code:

function mouseOver(){
           var oWrap = document.getElementById('wrap');
           oWrap.style.backgroundColor = "#FFFFFF";
           oWrap.style.filter = "alpha(opacity=100)";
           oWrap.style.opacity = 1.0;
        }

 

And here's the Jquery:

	$('#wrap').mouseover(function (){
	       $(this).css({
	           'background-color':'#FFFFFF',
		   'filter':'alpha(opacity=100)',
		   'opacity ':'1.0'
	    });
	});

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.