Expert Developer JavaScript Question:

What is the way to get the status of a CheckBox?

Tweet Share WhatsApp

Answer:

The status can be acquired as follows -

alert(document.getElementById('checkbox1').checked);

If the CheckBox will be checked, this alert will return TRUE.

Download Expert JavaScript Developer PDF Read All 150 Expert JavaScript Developer Questions
Previous QuestionNext Question
What do mean by NULL in JavaScript?Why JavaScript is called as Script for all browsers?