How To Check If An ID Exists Using jQuery
erics, Posted May 10th, 2011 at 10:16:29pm
Use the .length
property:
1 2 3 |
if (jQuery("#yourDiv").length > 0){ // your code here } |
Leave Your Comment
All fields marked with "*" are required.