Showing
1 changed file
with
6 additions
and
6 deletions
| ... | @@ -55,22 +55,22 @@ | ... | @@ -55,22 +55,22 @@ |
| 55 | <script src="//code.jquery.com/jquery.min.js"></script> | 55 | <script src="//code.jquery.com/jquery.min.js"></script> |
| 56 | <script> | 56 | <script> |
| 57 | $("#check_all").click(function() { | 57 | $("#check_all").click(function() { |
| 58 | - $("input[name=kinds]:checkbox").prop("checked", "checked"); | 58 | + $("input[name=shape]:checkbox").prop("checked", "checked"); |
| 59 | }); | 59 | }); |
| 60 | $("#uncheck_all").click(function() { | 60 | $("#uncheck_all").click(function() { |
| 61 | - $("input[name=kinds]:checkbox").removeProp("checked"); | 61 | + $("input[name=shape]:checkbox").removeProp("checked"); |
| 62 | }); | 62 | }); |
| 63 | $("#count_check").click(function() { | 63 | $("#count_check").click(function() { |
| 64 | - alert($("input[name=kinds]:checkbox:checked").length); | 64 | + alert($("input[name=shape]:checkbox:checked").length); |
| 65 | }); | 65 | }); |
| 66 | $("#check_all").click(function() { | 66 | $("#check_all").click(function() { |
| 67 | - $("input[name=shape]:checkbox").prop("checked", "checked"); | 67 | + $("input[name=kinds]:checkbox").prop("checked", "checked"); |
| 68 | }); | 68 | }); |
| 69 | $("#uncheck_all").click(function() { | 69 | $("#uncheck_all").click(function() { |
| 70 | - $("input[name=shape]:checkbox").removeProp("checked"); | 70 | + $("input[name=kinds]:checkbox").removeProp("checked"); |
| 71 | }); | 71 | }); |
| 72 | $("#count_check").click(function() { | 72 | $("#count_check").click(function() { |
| 73 | - alert($("input[name=shape]:checkbox:checked").length); | 73 | + alert($("input[name=kinds]:checkbox:checked").length); |
| 74 | }); | 74 | }); |
| 75 | </script> | 75 | </script> |
| 76 | </article> | 76 | </article> | ... | ... |
-
Please register or login to post a comment