title: Assign onclick Events to radiobutton Using the HTML DOM
body: <pre><code>&lt;input type="radio" name="sam1" value="1"&gt;HI
  &lt;input type="radio" name="sam1" value="2"&gt;HI HI
  </code></pre>
  
  <p>Actually i am try to add on click event to the above mention radio button</p>
  
  <pre><code>$("input:radio[name=sam1]").onclick = function () {disp()};
  </code></pre>
  
  <p>Please correct my code</p>
  
  <pre><code>function disp(){//content here}
  </code></pre>