open a popup when a checkbox is checked using jquery - Javascript jQuery

Javascript examples for jQuery:Form Checkbox

Description

open a popup when a checkbox is checked using jquery

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials