radio
$("input[name='qiRadioYfjg'][value='其他']").prop("checked",true);//根据value值设置默认选中项
select
var userCountry = $("#userinfoCountry").val()//根据text值设置选中项
$('#area option:contains(' + userCountry + ')').each(function(){
if ($(this).text() == userCountry) {
$(this).attr('selected', true);
}
});
单个checkbox选中取消触发问题
$('input[name=sfclsy]').click(function(){
if ($("input[name=sfclsy]").is(":checked")) {
$("#registerDate").css("display","inline-block")
}else{
$("#registerDate").css("display","none")
$("#registerDate").val("");
}
})