Basic JavaScript Question: Download Questions PDF
How to determine the state of a checkbox using JavaScript?
Answer:
Determining the state of a checkbox in JavaScript
var checkedP = window.document.getElementById("myCheckBox").checked;
var checkedP = window.document.getElementById("myCheckBox").checked;
Download JavaScript Interview Questions And Answers
PDF
Previous Question | Next Question |
How to get the contents of an input box using JavaScript? | How to set the focus in an element using Javascript? |