Expert Developer JavaScript Question:
Download Questions PDF

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.

Download Expert JavaScript Developer Interview Questions And Answers PDF

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