Check Box Using JQuery


Create a page in a file named jqcheckbox.html where in to check whether check box is selected or checked. Indicate the number of check boxes checked.
Use a <div> tag with id as “result” to display the output.
Jquery Library –
Sample of the page before checked
Quiz for Exam -  Check Box Using JQuery
Sample of the page after checked
Quiz for Exam -  Check Box Using JQuery



       <script src="">
               var $checkboxes=$('#a td input[type="checkbox"]');
                  var ccc=$checkboxes.filter(':checked').lenght;
       <form id="a">
                   <td><input type="checkbox" name="color" value="Red">Red</td>
                   <td><input type="checkbox" name="color" value="Green">Green</td>
                   <td><input type="checkbox" name="color" value="Blue">Blue</td>
                   <td><input type="checkbox" name="color" value="Black">Black</td>
       <div id="result"><span>0</span> are checked </div>

  1. Drag an Object
Sharing Is Caring

Leave a Comment