jQuery. How to uncheck all checkboxes except one (which was checked)
问题 I have html items, 4 example: <div> <div><input type="checkbox" class="foo"> Checkbox</div> <div><input type="checkbox" class="foo"> Checkbox</div> <div><input type="checkbox" class="foo"> Checkbox</div> <div><input type="checkbox" class="foo"> Checkbox</div> <div><input type="checkbox" class="foo"> Checkbox</div> <div><input type="checkbox" class="foo"> Checkbox</div> </div> And now, I want next: If I click on any checkbox - the checkbox should be checked and other checkboxes should be