Share
ShareSidebar
2011-09-30 23:55:24 +0

"exist" and "isset" function for jQuery?

Is there an "exist" and "isset" function for jQuery?

Rate this post

You must be registered to vote first

Other posts

Comments

jzentt
jzentt 2011-10-01 00:31:45

exist

if ($(selector).length) {
    alert
("exist");
}else{
    alert
("doesn't exist");
}

isset

if ( typeof variable !== "undefined" && variable) {

}
+0

Comment