Skip to content
Advertisement

Tag: controller

Javascript document.controller.setValue getValue(this)

How do I get the value of the checkbox (or state, checked or not 1-0) so that I can pass it to a controller?, I’ve tried the following but it doesnt work. Uncaught ReferenceError: getValue is not defined at HTMLInputElement.onclick Answer change getValue(this) to this.checked. it will get checkbox current state.

Advertisement