The length attribute determines the existence of a jquery object



//Jquery determines whether an object exists by getting the length of the object
function testJquery() {
if ($(".tel").length > 0) {
alert(" There are ");
}
else {
alert(" There is no ");
}
}