Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, on the lost focus event of a

Status
Not open for further replies.

sunila7

Technical User
Apr 11, 2001
1,087
US
Hi,

on the lost focus event of a text box i want to fill another text box with the value that user has filled in.

is it possible.

thanx,

sunil
 
sure - do it with javascript.

<script language=&quot;javascript&quot;>
function fillbox(){
document.formName.box2.value = &quot;some value to type in&quot;;
}
</script>

<form name=&quot;formName&quot; action=&quot;something.asp&quot; method=&quot;post&quot;>
<input type=&quot;text&quot; onblur=&quot;javascript: fillbox()&quot; name=&quot;box1&quot;><br>
<input type=&quot;text&quot; name=&quot;box2&quot;><br>
</form>

hth
leo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top