Posted By

sekihin on 04/10/09


Tagged

javascript aspnet


Versions (?)

Get RadioButtonList Value


 / Published in: JavaScript
 

  1. function getRadioButtonList( ) {
  2. var radioObj = document.getElementById ( "<%=RadioButtonList1.ClientID %>" );
  3. var radioList = radioObj.getElementsByTagName ( 'input' );
  4. for ( var i = 0; i < radioList.length; i++)
  5. {
  6. if (radioList[i].checked )
  7. {
  8. alert (radioList[i].value );
  9. }
  10. }
  11. }

Report this snippet  

You need to login to post a comment.