cobom
Posts: 55
|
| Posted: 01/26/2006, 5:41 AM |
|
This has been answered before I am sure, but I am unable to find anything.
If I have to field that are paired, ie Project Number and Project Data - can the user select Project Name from a dropdown and have Project Number populated?
The number is the important one but users generally like to pick from a name.
Thanks
_________________
cmckinney@searay.com
Will program for a Sea Ray 680 SS ;} |
 |
 |
eiden
Posts: 34
|
| Posted: 02/03/2006, 4:27 PM |
|
Do you mean something like this?
<html>
<head>
<title></title>
<script type="text/javascript">
function pField(val){
Form1.toField.value = val;
}
</script>
</head>
<body>
<select onchange="pField(this.value)">
<option value="1">John</option>
<option value="2">Eric</option>
</select>
<form name="Form1" method="post" action="">
<input type="text" name="toField" value="">
</form>
</body>
</html>
|
 |
 |
Walter Kempees
|
| Posted: 02/03/2006, 4:31 PM |
|
cobom:
search the forum for "dependant listbox", many explanations
"eiden" <eiden@forum.codecharge> schreef in bericht
news:643e3f4d8724aa@news.codecharge.com...
> Do you mean something like this?
>
> <html>
> <head>
> <title></title>
>
> <script type="text/javascript">
> function pField(val){
> Form1.toField.value = val;
> }
> </script>
>
> </head>
> <body>
>
> <select onchange="pField(this.value)">
> <option value="1">John</option>
> <option value="2">Eric</option>
> </select>
>
>
> <form name="Form1" method="post" action="">
> <input type="text" name="toField" value="">
> </form>
>
> </body>
> </html>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|