change text value on changing combo

dear sir/madam
I have a combo which has 2 values
I want when its value is changed then its value should be display in a
text box.
Thanks In Advance
vinodkus [ Mi, 02 Januar 2008 09:00 ] [ ID #1898021 ]

Re: change text value on changing combo

wrote on 02 jan 2008 in microsoft.public.inetserver.asp.general:

> dear sir/madam
> I have a combo which has 2 values
> I want when its value is changed then its value should be display in a
> text box.
> Thanks In Advance

dear madam/sir,

Classic ASP knows of no comboboxing, nor of text boxing.

I think you are barking up the wrong NG tree in this new year.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
exjxw.hannivoort [ Mi, 02 Januar 2008 11:16 ] [ ID #1898025 ]

Re: change text value on changing combo

vinodkus [at] gmail.com wrote:
> dear sir/madam
> I have a combo which has 2 values

There is no such thing as a "combo" in html. You should refer to it as a
"select" element.

> I want when its value is changed then its value should be display in a
> text box.

Client-side scripting questions should be posted to a group like
microsoft.public.scripting.jscript.

In the meantime, use the select's onchange event to change the value of the
input element.

<select
onchange="getElementById("id_of_input").value = this.value;" ... >

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
reb01501 [ Mi, 02 Januar 2008 12:50 ] [ ID #1898028 ]

Re: change text value on changing combo

I m using but it does not show any respnse please correct my code.
Thanks in Advance

<table border="1" cellpadding="0" cellspacing="0" style="border-
collapse: collapse" bordercolor="#111111" width="370" height="65">
<tr>
<td width="166" height="65">
<select name="SelNum" onChange="getElementById("txtNm1").value =
this.value;">
<option value="By Hand">By Hand</option>
<option value="By Courier">By Courier</
option>
</select>
</td>
<td width="198" height="65">
<input type=text id=txtNm1 name=TxtNum size="20" ></td>
</tr>
</table>



Bob Barrows [MVP] wrote:

> vinodkus [at] gmail.com wrote:
> > dear sir/madam
> > I have a combo which has 2 values
>
> There is no such thing as a "combo" in html. You should refer to it as a
> "select" element.
>
> > I want when its value is changed then its value should be display in a
> > text box.
>
> Client-side scripting questions should be posted to a group like
> microsoft.public.scripting.jscript.
>
> In the meantime, use the select's onchange event to change the value of the
> input element.
>
> <select
> onchange="getElementById("id_of_input").value = this.value;" ... >
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
vinodkus [ Do, 03 Januar 2008 07:03 ] [ ID #1898874 ]

Re: change text value on changing combo

wrote on 03 jan 2008 in microsoft.public.inetserver.asp.general:

> Bob Barrows [MVP] wrote:
>> Client-side scripting questions should be posted to a group like
>> microsoft.public.scripting.jscript.

[Please do not toppost on usenet]

> I m using but it does not show any respnse please correct my code.

Please do not go on using the wrong NG!

Bob pointed that out to you ASP is serverside coding.

Try the above advised NG or with even more chance of help:

comp.lang.javascript

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
exjxw.hannivoort [ Do, 03 Januar 2008 09:33 ] [ ID #1898875 ]
Webserver » microsoft.public.inetserver.asp.general » change text value on changing combo

Vorheriges Thema: Exiting IE Browser
Nächstes Thema: File or assembly name or one of its dependencies, was not found...