/ Published in: JavaScript
URL: http://www.aaronrussell.co.uk/blog/check-if-an-element-exists-using-jquery/
Expand |
Embed | Plain Text
if ($("#mydiv").length > 0){ // do something here }
You need to login to post a comment.
