In my application, the user can check or uncheck a checkbox. On the change event:
$('#Inactive_cb').change(function () {
....
this.checked = !this.checked;
I check to see if the value has changed. In change(), I also check to see if they have permission to even do the change. If they don't I like to undo, the check/uncheck.
Question:
Is the way I have it above ideal? I have:
this.checked = !this.checked;