I have text box on 1.php like this
<input type="text" id="1" value="somevalue">
&
text box on 2.php like this
<input type="text" id="2" value="">
1.php and 2.php resides on single domain.
I want to get value of textbox1 into textbox2 using jQuery
How can I achieve this ?
Thanks
If I understand the question correctly, you can do this:
We’re forgetting the IDs are numbers, it’s just an example here. All we’re doing is passing a context option to
$(selector, context)to find the ID within the response, and taking its.val()for use.