How to validate if an HTMLLIElement is hidden with jQuery
Posted
by
Hanzel
on Stack Overflow
See other posts from Stack Overflow
or by Hanzel
Published on 2012-06-22T02:59:22Z
Indexed on
2012/06/22
3:16 UTC
Read the original article
Hit count: 101
JavaScript
|jQuery
I'm iterating through a variable called content, it contains several HTMLLIElement objects. How can i use jQuery's or JavaScript's functions with this object?, what I'm trying to do is the kind of validation written in the commented code.
$.each(content, function(index, value){
//if(!value.is(':hidden')){
console.log(index + ' : ' + value);
//}
});
What I'm getting is
Uncaught TypeError: Object # has no method 'is'
If I do value.getAttribute('style');
I get 'display: none;'
© Stack Overflow or respective owner