You are here: Re: Want to fill a form box2 automatically based on form box1 input [on the same page] « HTML « IT news, forums, messages
Re: Want to fill a form box2 automatically based on form box1 input [on the same page]

Posted by Thomas 'PointedEars' Lahn on 05/26/05 01:07

Matt MC wrote:

> How would I put this together so,
>
> <input name="input1" type="text">
>
> <input name="input2" value="whatever is typed into input1" type="text">
>
> I would like to be able to type something in input1, and see it type
> into input2

<input name="input1"
onkeyup="this.form.elements['input2'].value = this.value;"
onmouseup="this.onkeyup(event);">
<input name="input2" value="whatever is typed into input1">

You don't need to specify type="text", that's the initial value of the
attribute.


PointedEars

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация