weixin_33694172 2009-01-08 22:20 采纳率: 0%
浏览 99

使用 jQuery 设置复选框"checked"?

I'd like to do something like this to tick a checkbox using jQuery:

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

or

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

Does such a thing exist?

转载于:https://stackoverflow.com/questions/426258/setting-checked-for-a-checkbox-with-jquery

  • 写回答

0条回答 默认 最新

    报告相同问题?