<html> <head> <script src="jquery_min.js"> </script> <script> $(document).ready(function(){ $("#button").click(function(){ var ravi=$("#text2").val(); $("#text1").val(Testing); }); }); </script> </head> <body> <input type="text" value="Testing" id="text"> <input type="text" id="text1"> <input type="button" value="Copy" id="button"> </body> </html>
<pre><html> <head> <script src="jquery_min.js"> </script> <script> $(document).ready(function(){ $("#button").click(function(){ var ravi=$("#text2").val(); $("#text1").val(Testing); }); }); </script> </head> <body> <input type="text" value="Testing" id="text"> <input type="text" id="text1"> <input type="button" value="Copy" id="button"> </body> </html>
$(function(){ $("#button").click(function(){ var value = $("#text2").val(); $("#text1").val(value); }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)