xxxxxxxxxx
$('input:radio[name=Status]').val(['@viewbag.data']);
xxxxxxxxxx
$('#radio-button-id').click(function() {
if($('#radio-button-id').is(':checked'))
{
//input where you put a value
$('#program').val("radio-button-text");
}
});
xxxxxxxxxx
$('input:radio[name="postage"]').change(function(){
if ($(this).val() == 'Yes') {
//true
}
else {
//false
}
});
jQuery radio button is checked false
xxxxxxxxxx
$("#radio_1").prop("checked", false);
xxxxxxxxxx
// Assuming you have a radio input element with the class 'myRadio'
var selectedValue = $('input[name="myRadio"]:checked').val();