How to detect type of object is 'checkbox' or something else.
You can use is method:
if ($(this).is(":checkbox")) {
// is checkbox
} else {
// not checkbox
}
$(element).attr('type') == 'checkbox'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With