Saturday, March 9, 2013

Check if element exists


if ($('#myElement').length > 0) { 

    // it exists 

}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.