Expert JavaScript Developer Question: Download Expert JavaScript Developer PDF

How to determine the state of a checkbox using JavaScript?

Tweet Share WhatsApp

Answer:

Determining the state of a checkbox in JavaScript
var checkedP = window.document.getElementById("myCheckBox").checked;

Download Expert JavaScript Developer PDF Read All 58 Expert JavaScript Developer Questions
Previous QuestionNext Question
Can you please explain the difference between web-garden and a web-farm?How to get contents of an input box using JavaScript?