项目要求一个是都是 一个否都否

$(".jindu").change(function(){
if($(this).val()=="是"){
$(".jindu").each(function(){
$(this).find("option:contains('是')").prop("selected",true);
});
}else{
$(".jindu").each(function(){
$(this).find("option:contains('否')").prop("selected",true);
});
}
});

posted on 2018-09-05 09:51  努力才会进步  阅读(499)  评论(0编辑  收藏  举报