1.

How we can get the value of a radio button using Jquery?

Answer»

When a radio button is selected addition check ATTRIBUTE is not ADDED to it. You have to enter "CHECKED".

Example

$(document).READY(function(){
    $("input[type='button']").on('click', function(){
       VAR radioValue = $("input[name='gender']:checked").val();
       if(radioValue){
          alert(radioValue);
       }
    });
});



Discussion

No Comment Found