/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if($(selector)[0]){ ...code... }.
URL: http://james.padolsey.com/javascript/things-you-may-not-know-about-jquery/