将jQuery的复选框设置为“已选中”? - Setting “checked” for a checkbox with jQuery?

问题:

I'd like to do something like this to tick a checkbox using jQuery : 我想作这样的事情来使用jQuery勾选一个checkbox this

$(".myCheckBox").checked(true);

or 要么 spa

$(".myCheckBox").selected(true);

Does such a thing exist? 这样的事情存在吗? .net


解决方案:

参考一: https://stackoom.com/question/1mt8/将jQuery的复选框设置为-已选中
参考二: https://oldbug.net/q/1mt8/Setting-checked-for-a-checkbox-with-jQuery
相关文章
相关标签/搜索