Return to Snippet

Revision: 11899
at February 23, 2009 06:55 by sveggiani


Initial Code
if($(selector)[0]){ ...code... }.

Initial URL
http://james.padolsey.com/javascript/things-you-may-not-know-about-jquery/

Initial Description

                                

Initial Title
check if a selector contains any elements

Initial Tags
jquery

Initial Language
JavaScript