<head runat="server"> <title></title> <script src="jquery-1.11.1.js" type="text/javascript"></script> <script> var x = $("input:text").val(); $(document).ready(function () { $("#button1").click(function () { $("p").append(x); }) }) </script> </head> <body> <form id="form1" runat="server"> <div> <p id="Messages">Messages displayed here:</p> </div> <div> <input id="Text1" type="text" /> <br /> <br /> <button id="button1">Submit</button> </div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)