Reply to Re: Placing the selection of a list field in a text field

Your name:

Reply:


Posted by Hywel Jenkins on 06/08/05 00:51

In article <1118180230.644434.55400@g44g2000cwa.googlegroups.com>,
goodminded@hotmail.com says...
> Hi
>
> I have a field with a list of items. Like below:
> <select width="100" size="1" name="Industrielijst" style="font-family:
> Arial; font-size: 8pt">
> <option value="P1">Plants</option>
> <option value="P2">Software</option>
> <option value="P3">Hardware</option>
> <option value="P4">System</option>
> <option value="P5">Screens</option>
> </select>
>
> Above this field I have a text field, like this.
> <input type="text" name="T1" size="40">
>
> Is it possible when I make a selection to place that selection in the
> text field automatically? If so , how can I do that with javascript?
>
> Regards

Untested:
<select onchange="T1.value = this[this.selectedIndex].value;" ...

--
Hywel

Kill the Crazy Frog
http://www.petitiononline.com/crzyfrg/

[Back to original 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

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