I use Javascript and Mootools for creating a particular HTML page, which includes a javascript file that checks the opacity of an element for a certain operation.
However, on IE, I face this issue of elem.style.opacity giving out a undefined value.
Here is the operation I am doing,
var elem = $('login');
alert(elem.style.opacity);
if(elem.style.opacity == 0)
{
// Code
}
The alert gives out a correct value of opacity on all browsers except IE.
Any guidance appreciated.