Return to Snippet

Revision: 37601
at December 13, 2010 21:14 by digitalclubb


Initial Code
(function($) { $.fn.extend({ exists: function() {return this.length>0;} }); })(jQuery)

Initial URL


Initial Description
Great way to check if a node exists before running a piece of code.

Initial Title
Create exists function in jQuery

Initial Tags
jquery, function

Initial Language
jQuery