How to determine the state of a checkbox using Javascript ?

 Posted by Bharathi Cherukuri on 6/29/2012 | Category: JavaScript Interview questions | Views: 2578 | Points: 40
Answer:

To determine the state of a checkbox using Javascript, you can use the following example.

Example:

var checkedP = window.document.getElementById("myCheckBox").checked;


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response