Nov 13

In many website we have seen that on checked or unchecked one box

all the check box are checked or unchecked.

Now in this article i am showing how to checked unchecked all the check box

    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript">
        <td><input type="checkbox" class="check-box not_checked" id="check_all"></td>
        <td><input type="checkbox" class="check-box" id="check_box2"></td>
        <td><input type="checkbox" class="check-box" id="check_box3"></td>
         <td><input type="checkbox" class="check-box" id="check_box4"></td>

In this setting checked attribute true/false alternatively by clicking on
select/deselect for alternate removing and adding class
not_checked depending upon that we are setting true and false

Be Sociable, Share!

One Response to “Select/Deselect Multiple CheckBox Using Jquery”

  1. […] 原文: Select/Deselect Multiple CheckBox Using Jquery […]

Leave a Reply

preload preload preload