Javascript examples for jQuery:Form Checkbox
open a popup when a checkbox is checked using jquery
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.6.js"></script> <script type="text/javascript"> $(window).load(function(){/* w w w.ja va2 s. c om*/ $("#alien").click(function(){ if($(this).is(":checked")){ console.log("yes"); } }); }); </script> </head> <body> <div> <input type="checkbox" id="alien"> </div> </body> </html>