jquery根据特定的值设置 input type=radio 单选框为选中状态
$(".valLookBox input[name='agreeable']").each(function(){
if($(this).val() == result.status){
$(this).prop( "checked", true );
}
});注意这里直接通过$(".valLookBox input[name='agreeable']").val("某个值")的方式不能
原创
2015-06-02 19:53:57 ·
12834 阅读 ·
1 评论