How to check whether CheckBox is checked or not?

 Posted by vishalneeraj-24503 on 12/28/2013 | Category: JavaScript Interview questions | Views: 1253 | Points: 40
Answer:

With the help of checked property of checkbox,we can check whether it is checked or not.
It returns true or false.

For Example:-

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

<asp:CheckBox ID="chk_employee_active" runat="server" />


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response