$('#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
}
});
$(".nameOfTheClass").prop('checked', true);
!$("input:radio[value='7'][name='employee-type']").prop('checked')
$('#' + newcol).prop('checked',true);
/*
A quick way to check if a radio button as been checked is by using
the .is(":checked") fucntion. A small example below :)
*/
var myElem = jQuery('#elemId'); // select the radio element
var testResult = myElem.is(":checked"); // returns true if checked, else false
$('input:radio[name=Status]').val(['@viewbag.data']);