In my html:
<input type="checkbox" name="select">
<input type="radio" name="select">
name property same due to some logical reason
in my JS
I write below code:
$('input[type="checkbox"],input[type="radio"]').on("change",function(event){
console.log(event.target.nodename);
// on both cases it show "INPUT"
}
});
How I will know that I click on checkbox or radio button?