Search code examples
jqueryeachvisible

Jquery each and visible - Unknown Pseudoclass or Pseudoelement 'visible'



i have a problem with jquery/visible. Hope somebody can help me.

This code works, but i get an error in firebug

$('.fse:visible').each(function (i)

-> Unknown Pseudoclass or Pseudoelement 'visible'.


second try

$('.fse').is(':visible').each(function (i)

-> $(".fse").is(":visible").each is not a function


Whats wrong?

Thanks in advance!
Peter


Solution

  • I don't think it is an Error but a CSS Warning you are getting and it is normal. Had the same trouble (even appears on the jquery.com website) some time back.

    See the discussion here: http://old.nabble.com/Unknown-pseudo-class-or-pseudo-element-%27odd%27.-td25425663s27240.html