We have checkboxes registered for onchange event handler. In testing using
blueridge, to simulate checking of a checkbox, the following more ideal approaches, sadly, don't work:
1 2
| $("input:checkbox:first").change(); #1 $("input:checkbox:first").click().change(); #2
|
But the following works:
1
| $("input:checkbox:first").attr('checked', true).change();
|
Bitten once.
No comments:
Post a Comment