Is there an “exists” function for jQuery ?
Solution :
JQuery.fn.exists = function(){ return this.length>0; }
if ( $(selector).exists() ) {
// Do something
}
There you go!
Cheers !
Hope you got the Ans !
still having probs ? let me know by comments !
Know More About :
PHP Freelancing India
Great articles and useful information for readers. Thanks for sharing such good articles. hire php developer
ReplyDeletehire php programmers