Javascript examples for jQuery Method and Property:jQuery Method Example
pass parameters in JQuery popup box
<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>