javascript - Primitive value returned from constructor will be lost -
i created function:
function checkhidden(el){ homecoming $(el).css('display')!='none' }
my ide warns me that:
primitive value returned constructor lost when called 'new'
actually when phone call this:
var = $("#catalog-body > div").filter(function(){return checkhidden(this)})
it doesn't work , doesn't cut down set of elements unhidden ones. please explain me issue. have giant lack of knowledge.
jquery has built in. can utilize :visible
selector. can do:
var all=$("#catalog-body > div").filter(':visible')
to visible elements.
javascript jquery
No comments:
Post a Comment