DEVFYI - Developer Resource - FYI

How to determine the state of a checkbox using Javascript?

JavaScript Interview Questions and Answers


(Continued from previous question...)

41. How to determine the state of a checkbox using Javascript?

var checkedP = window.document.getElementById("myCheckBox").checked;

(Continued on next question...)

Other Interview Questions