$('#elem').is('visible'); - wrong syntax;
$('#elem:hidden'); - only select hidden elements;
$('#elem').attr('visible'); - wrong attribute;
$('#elem').is(':hidden'); - correct way, according to jQuery refference;
The is() method checks if one of the selected elements matches the selectorElement.
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати