Checking for a DIV on a page with jQuery
Trying to find if a DIV is present on a page with jQuery
ColdFISH is developed by Jason Delmore. Source code and license information available at coldfish.riaforge.org
if($('#DIVID').length){
/*DIV isDefined()*/
}
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 :)