STYLE SWITCHER

jQuery exists function

jquery_black
jQuery.fn.exists = function(){return this.length > 0;}
if($('.class-name').exists())
{

}

Recent Article

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  1. I’ve been absent for a while, but now I remember why I used to love this blog. Thank you, I will try and check back more frequently. How frequently you update your site?

  • Keep your skills sharp, get informed.

    Subscribe to our mailing list and get interesting stuff and updates to your email inbox