How can I check if ‘this’ is a checkbox?
This is the way to see if it is an selectbox
if($(this).parent().is('select')) {
Now can I see wether it is a checkbox? So I tried this:
}else if($(this).is(:Checkbox)){\n
But it gives me a syntax error. Any help is welcome.
Checkbox:
Checked:
Consult jQuery selectors.