Consider following HTML snippet:

<input type="checkbox" checked/> Input 1
<input type="checkbox" checked/> Input 2
What jQuery code will you use to uncheck the checkboxes?
Explanation
.attr() method get or set the value of an attribute for the selected elements. Example:

$('input') // select input elements
   .attr('checked', false); // set checked attribute to false

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes