jq设置checkbox选中

jQuery中设置input checkbox选中有两种方法。

1.6之前你可以attr方法:

.attr('checked','checked')

1.6之后你可以使用prop方法:

.prop('checked', true);
(1)
上一篇 2020年10月13日 下午5:03
下一篇 2020年10月16日 上午10:09

相关推荐

发表回复

登录后才能评论