Things I Learned Today
"You learn something new every day"... I decided to keep track.
Friday, January 28, 2011
How to detect if an element is hidden in jQuery
This will work when myID was hidden using .hide( ) and displayed using .show( )
if
($(
"#myID"
).is(
":visible"
))
$(
"#myID"
).hide();
else
$(
"#myID"
).show();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment