1

Possible Duplicate:
trigger onchange event manually

I have a checkbox in a form that I want to set to checked. That's easy:

var checkbox = document.getElementById("mycheckbox");
checkbox.checked = true;

But I want to do this so that the onChange listeners get called. How do I do this?

4

0 に答える 0