Is there an "exists" function for jQuery
Posted
by jakemcgraw
on Stack Overflow
See other posts from Stack Overflow
or by jakemcgraw
Published on 2008-08-27T19:49:41Z
Indexed on
2010/04/11
11:53 UTC
Read the original article
Hit count: 345
So I know that you can do:
if ($(selector).length>0) {
// Do something
}
But is there a more elegant method?
© Stack Overflow or respective owner