title: Problem accessing OnChange javascript event of Radio Button
body: <p>I'm running in to the same problem <a href="http://www.velocityreviews.com/forums/t97682-radio-button-client-events.html" rel="nofollow noreferrer">this individual has</a>.  Specifically, I'm trying to get a clientside <code>onchange</code> javascript event to fire for my Radio Button.  Unfortunately, the code gets rendered with the <code>onchange</code> located on a span surrounding the radio button instead of on the radio button itself.</p>
  
  <p>I am using other javascript within the page to manipulate the radio buttons, so <code>onclick</code> doesn't fully satisfy my needs.</p>
  
  <p>Additionally, the answer that was given to the user in the link above was "too bad, use an html check box".  For my application, this is sub-par as I need the radio button to raise the OnCheckedChange event serverside.</p>
  
  <p>One solution path I was attempting to go down (using jQuery 1.1.3.1) was to set the change events myself:</p>
  
  <pre><code>jQuery("input:radio").change(new function() { 
    setParent(jQuery(this)); 
    showUndo(jQuery(this)); 
  });
  </code></pre>
  
  <p>Which mirrors the <code>onclick</code> event (which is currently implemented and I'm trying to convert to the onchange ;) )</p>
  
  <pre><code>onclick="setParent(this); showUndo(this);"
  </code></pre>
  
  <p>This didn't work, though. :'(</p>