title: get checkbox name from javascript
body: <p>I am trying to get a checkbox name when a checkbox is clicked...i am using a javascript function but it returns undefined.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>notType= document.getElementById($('[type="checkbox"]').attr('id')).value;
  alert(notType);
  </code></pre>