Tagged: jquery

Select Deselect all checkboxes using jQuery 4

Select / Deselect all checkboxes using jQuery

<script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js”></script> HTML Code for Check boxes <ul class=”main”> <li><input type=”checkbox” id=”select_all” /> Select all</li> <ul> <li><input type=”checkbox” class=”checkbox” value=”1″/>Item 1</li> <li><input type=”checkbox” class=”checkbox” value=”2″/>Item 2</li> <li><input type=”checkbox” class=”checkbox” value=”3″/>Item 3</li> <li><input type=”checkbox” class=”checkbox”...