var event = document.createEvent("HTMLEvents"); event.initEvent('change', false, true); checkbox.dispatchEvent(event);