1
當我單擊「接受」按鈕時,必須選中該複選框。啓用複選框,同時單擊dojo中的按鈕
HTML
<input id="eulacheckbox" dojoType='dijit.form.CheckBox' data-dojo-props='checked: false' />
<button class="defaultButton" dojoType="dijit.form.Button" type="submit" id="eulaAccept">Accept</button>
道場
dojo.connect(dijit.byId("eulaAccept"), "onClick", function(){
dijit.byId("eulacheckbox"),set("data-dojo-props", "checked: true");
});