[jQuery] In IE7, .css( 'opacity' ) does not return expected value

[jQuery] In IE7, .css( 'opacity' ) does not return expected value


Happily ignore this if it has been fixed.
I notice that in IE7 (I assume it works across the board for IE) that,
if I set the opacity initially on an element with, jQuery.css returns
1.0 instead of the actually value in the CSS.
CSS:
...
opacity: .95;
filter: alpha(opacity=95);
...
JS:
...
var defaultOpacity = item.css( 'opacity' );
// Fix to get actually opacity value
if( jQuery.browser.msie ){
var ieFilter = item.css( 'filter' );
defaultOpacity = ieFilter ? (parseFloat( ieFilter.match(/opacity=
([^)]*)/)[1] ) / 100).toString() : "1";
}
...