samedi 4 mars 2017

jQuery .is( selector ) - where ALL selectors match the argument?

if ($('.A, .B, .C').is(':visible'))

-returns true if at least one of these elements matches the given argument.

How do I change it so that it returns true ONLY if ALL of these elements matches the given argument? (The argument could be changed to :hidden for this example but that is not what I am looking for)

Aucun commentaire:

Enregistrer un commentaire