jquery checkbox selector
Translation results:
checkbox
UK [ˈtʃekbɒks] US [ˈtʃekbɑ:ks]
Check column, check box
jquery checkbox selectorsyntax
Function:: The checkbox selector selects <input> elements of type checkbox.
Syntax: $(":checkbox")
jquery checkbox selectorexample
<html> <head> <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".btn1").click(function(){ $(":checkbox").hide(); }); }); </script> </head> <body> <form action=""> I have a bike: <input type="checkbox" name="vehicle" value="Bike" /> <br /> I have a car: <input type="checkbox" name="vehicle" value="Car" /> <br /> I have an airplane: <input type="checkbox" name="vehicle" value="Airplane" /> </form> <button class="btn1">Hide Checkboxes</button> </body> </html>
Click the "Run instance" button to view the online instance