radio button checked event jquery

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

        if ($(this).val() == 'Yes') {
            //true
        }
        else {
            //false
        }
    });
Source

Also in JavaScript: