jquery对于radio等原有属性设置选中
问题描述,jqueryj对于radio属性进行html回显页面时,使用.attr("checked",true)无法在页面显示为选中状态,应使用.prop("checked",true)
jquery回显radio不应用attr,应该用.prop(“radio”,true); html自带的标签都应使用prop,会返回状态信息,也即使
原创
2018-08-07 16:02:44 ·
939 阅读 ·
0 评论