1// jQuery version 1.6 or above use:
2$("#myRadioID").prop("checked", true);
3
4//jQuery versions below 1.6 use:
5$("#myRadioID").attr('checked', 'checked');
1By LOVE
2Here , name=Gender is the name attribute value of the radio button
3
4$("input[name='Gender']:checked").val()
1$(function() {
2 var $radios = $('input:radio[name=gender]');
3 if($radios.is(':checked') === false) {
4 $radios.filter('[value=Male]').prop('checked', true);
5 }
6});
7
1$('#element').click(function() {
2 if($('#radio_button').is(':checked')) { alert("it's checked"); }
3});
4
1$('#radio-button-id').click(function() {
2 if($('#radio-button-id').is(':checked'))
3 {
4 //input where you put a value
5 $('#program').val("radio-button-text");
6 }
7});