Home > Interviews > JavaScript >

How to get CheckBox status whether it is checked or not?

 Posted by Raja on 6/29/2008 | Category: JavaScript Interview questions | Views: 10373
Answer:

Write following code

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

if it will be checked you will get true else false.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response