0
Q:

radio button checked event jquery

$('#radio-button-id').click(function() {
  if($('#radio-button-id').is(':checked')) 
  { 
    //input where you put a value
    $('#program').val("radio-button-text");
  }                      
});
2
$('input:radio[name="postage"]').change(function(){

        if ($(this).val() == 'Yes') {
            //true
        }
        else {
            //false
        }
    });
0
$('#element').click(function() {
   if($('#radio_button').is(':checked')) { alert("it's checked"); }
});
0
$('form input[type=radio]:checked').val();
5
$(document).ready(function(){
  $('#submit_button').click(function() {
    if (!$("input[name='name']:checked").val()) {
       alert('Nothing is checked!');
        return false;
    }
    else {
      alert('One of the radio buttons is checked!');
    }
  });
});
0

New to Communities?

Join the community