Posted By

sveggiani on 02/23/09


Tagged

jquery not-mine


Versions (?)

check if a selector contains any elements


 / Published in: JavaScript
 

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

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

Report this snippet  

You need to login to post a comment.