Skip to content
Loading
Getting radio button value & text without using asp.net controls 
  • Sachin Singh
    it completely depends on Html structure,
    for  radiobuttons constructed like below
    1.   
    2.  name="MyRadio" value="20" data-name="4 - Good">4 - Good 
     You will get text and value using Jquery like below
    1. var Text=$("input[name='MyRadio']:checked").parent('label').text();  
    2. var Value=$("input[name='MyRadio']:checked").Val();