How to Check a Checkbox Using JavaScript

How to Check a Checkbox Using JavaScript

To check a checkbox in JavaScript, we make use of checked property.   Its value can be true or false.  Example is given below.

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •