Code:
var obj = $('li.hide');
for(var i=0; i<obj.length; i++){
if(obj[i].css('display') == 'block' || obj[i].css('display') == ''){
obj[i].css('display','none');
}
else{
obj[i].css('display','block');
}
}
I get 20 elements in the obj object, as expected, but when I try to loop and use the .css() method it errors saying "object doesn't support this property or method"?
I am using : jquery-1.4.2.min.js
Thanks,
1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
MIME::Lite TLS Email Encryption - Perl v0.02 beta