Is the the jQuery('#selector').css({'opacity':50});
cross browser?
The only reason i ask is because the line below that we'd normally use on css
-moz-opacity:.50; filter:alpha(opacity=50); opacity:.50;
this is probably better:
$(element).fadeTo(0, 0.5);
Yes, it sets the css opacity or IE's opacity filter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With