How to detect type of object is 'checkbox' or something else.
4 Answers
You can use is method:
if ($(this).is(":checkbox")) {
// is checkbox
} else {
// not checkbox
}
You can use is method:
if ($(this).is(":checkbox")) {
// is checkbox
} else {
// not checkbox
}