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

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Продолжайте изучать
тесты по JavaScript
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты