I've successfully used:

 

$(element).css({opacity:0.5});

 

On IE6, IE7, FF1.5, FF2.0 and Opera9 (don't have access to Safari at this
time).

 

JK

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Joan Piedra
Sent: Thursday, April 12, 2007 7:32 AM
To: [EMAIL PROTECTED]
Subject: [jQuery] How to add opacity to an element

 

Hey guys,

Is there a crossbrowser jquery way to add opacity to an element?
I've tried with .css('opacity','0.5') and .animate({opacity:0.5},0000).

Is there some documentation or workaround to achieve this? 
Regards

-- 
Joan Piedra || Frontend webdeveloper
http://joanpiedra.com/ 

Reply via email to