jquery check if variable exissts code example
Example: javascript check if variable is a jquery object
if (obj instanceof jQuery){
console.log('object is jQuery');
}
if (obj instanceof jQuery){
console.log('object is jQuery');
}