Page 1 of 1

pass the text box value from one form to another form textbo

Posted: Wed Oct 21, 2015 12:02 am
by infoitmanoj
i need one form textbox value change, In that value pass into another form textbox in my website....

Re: pass the text box value from one form to another form te

Posted: Wed Oct 21, 2015 12:45 am
by requinix
Okay. What code do you have?

Re: pass the text box value from one form to another form te

Posted: Wed Oct 21, 2015 1:25 am
by infoitmanoj
I have tried below code .. its working fine and textbox value should be passing in same form ....but i need one textbox to be one form and another text box to be in another form value should be passed....
$(document).ready(function()
{ $("#query2").blur(function(e)
{
$("#search_head #query").val($(this).val()); }); });


<form id="search_head">

<input id="query" />
<input id="query2" placeholder="Blur me" value="Hi there" />
</form>

Re: pass the text box value from one form to another form te

Posted: Wed Oct 21, 2015 2:13 am
by infoitmanoj
requinix wrote:Okay. What code do you have?
I have tried below code .. its working fine and textbox value should be passing in same form ....but i need one textbox to be one form and another text box to be in another form value should be passed....
$(document).ready(function()
{ $("#query2").blur(function(e)
{
$("#search_head #query").val($(this).val()); }); });


<form id="search_head">

<input id="query" />
<input id="query2" placeholder="Blur me" value="Hi there" />
</form>