Monday, October 29, 2012

Determining whether JQuery has not found any element

if ($("#id").length) {
//at least one element was found
} else {
//no elements found
}

No comments:

Post a Comment