Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

Checking for a DIV on a page with jQuery

Trying to find if a DIV is present on a page with jQuery

view plain print about
1if($('#DIVID').length){
2 /*DIV isDefined()*/
3}

Was thinking of putting this in a jQuery plugin like isDefind() put then its not worth the extra code I think :)

Comments Comments (0) | Print Print | Send Send | 515 Views

(Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .