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