/ Published in: jQuery
Expand |
Embed | Plain Text
Function: jQuery.fn.exists = function() { return (this.length > 0); }; // if($('#object').exists()) Chaining: jQuery.fn.IfExists = function() { if(this.length > 0) return this; };
You need to login to post a comment.
