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');
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$("input[type='radio'][name='theme']").click(function() {
2 var value = $(this).val();
3});