samedi 25 octobre 2014

Detecting programmatic change in checkbox state


Vote count:

0




I have a checkbox:



<input id="abcd" name="abcd" type="checkbox" onclick="doSomething(this, 'otherparams');">


Now, I have some other code, that could do the following:



document.getElementByID("abcd").checked=true;


I want doSomething to fire even when I change the state of the checkbox programmatically.



asked 1 min ago







Detecting programmatic change in checkbox state

Aucun commentaire:

Enregistrer un commentaire