jquery check if click to this self not this child code example
Example: jquery check if click to this self not this child
if ($(e.target).is(this)){
console.log("do something");
}
if ($(e.target).is(this)){
console.log("do something");
}