$("input[name='sex'][value='1']").prop("checked",true); $("input[name='sex'][value='1']").attr("checked",true);