pass parameters in JQuery popup box - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:jQuery Method Example

Description

pass parameters in JQuery popup box

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> 
  <script>
function popupfunctioncall(){//www .  j a  v a  2 s. c o m
console.log($('#username').val()+"/"+$('#color_name').val() );// you can user your popup here
}

      </script> 
 </head> 
 <body> 
  <form> 
   <input type="text" name="username" id="username"> 
   <input type="text" name="color" id="color_name"> 
   <input type="submit" name="cub" value="submit" onclick="popupfunctioncall()"> 
  </form>  
 </body>
</html>

Related Tutorials