Expert Developer JavaScript Question:

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

Expert JavaScript Developer Interview Question
Expert JavaScript Developer Interview Question

Answer:

The status can be acquired as follows -

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

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


Previous QuestionNext Question
What do mean by NULL in JavaScript?Why JavaScript is called as Script for all browsers?