jQuery check a radio button
snippet in javascript

jQuery check a radio button

user1579

// jQuery version 1.6 or above use:  
$("#myRadioID").prop("checked", true);
 
//jQuery versions below 1.6 use:
$("#myRadioID").attr('checked', 'checked');

jquery checkbox checked

user7482

$("checkbox").is(":checked")

unset radio button jquery by name

user7486

$("input:radio[name='thename']").each(function(i) {
       this.checked = false;
});

jquery chek radio

user9367

//<input type="radio" name="book_condition" value="3" >
$("input:radio[value='3'][name='book_condition']").prop('checked',true);