$("#ulWizardTeamMembersList").find('#chk' + ContactInfo[0]).attr("checked", "checked");
countChecked('ulWizardTeamMembersList', 'TeamMembers');
$("#ulWizardContactsList").find('#chk' + ContactInfo[0]).attr("checked", "checked");
countChecked('ulWizardContactsList', 'Contacts');
1 に答える
0
使用してみてください:
whatever.prop('checked', true);
「プロパティ」と「属性」には微妙な違いがあり、最近のバージョンの jQuery ではそれが強制され始めています。
ここを参照してください: http://api.jquery.com/prop/
そしてここ: .prop() と .attr()
それが役立つことを願っています!
于 2013-02-23T10:51:41.847 に答える