Andy Jarrett // Code. Develop. Create.

Checking for a DIV on a page with jQuery

Trying to find if a DIV is present on a page with jQueryif($('#DIVID').length){ /*DIV isDefined()*/}Was thinking of putting this in a jQuery plugin like isDefind() put then its not worth the extra code I think :)

I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee. Your support keeps this site running and the coffee brewing! ☕️