How can when select change run a event

Discussion in 'ASP General' started by Jack, Jan 9, 2004.

  1. Jack

    Jack Guest

    Hello,
    <%@ Language=VBScript %>
    <%
    Response.Write "<SELECT id=select1 name=select1 method=GET>"
    Response.Write "<OPTION 1>One</OPTION>"
    Response.Write "<OPTION 2>Two</OPTION>"
    Response.Write "<OPTION 3>Three</OPTION>"
    Response.Write "</SELECT>"
    Response.Write "<INPUT type=""text"" id=text1 name=text1>"
    %>
    I want a event,when select1 changed,text1 shows select1's value.For example
    when select1 is selected "Two" text1 shows 2.
    I wait your advice.
     
    Jack, Jan 9, 2004
    #1
    1. Advertising

  2. Jack

    Tom B Guest

    This would be done client-side.
    A javascript newsgroup would probably be a better place to try.

    "Jack" <> wrote in message
    news:%23fz$...
    > Hello,
    > <%@ Language=VBScript %>
    > <%
    > Response.Write "<SELECT id=select1 name=select1 method=GET>"
    > Response.Write "<OPTION 1>One</OPTION>"
    > Response.Write "<OPTION 2>Two</OPTION>"
    > Response.Write "<OPTION 3>Three</OPTION>"
    > Response.Write "</SELECT>"
    > Response.Write "<INPUT type=""text"" id=text1 name=text1>"
    > %>
    > I want a event,when select1 changed,text1 shows select1's value.For

    example
    > when select1 is selected "Two" text1 shows 2.
    > I wait your advice.
    >
     
    Tom B, Jan 9, 2004
    #2
    1. Advertising

  3. Jack

    Jack Guest

    Thank you
     
    Jack, Jan 9, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. duncan
    Replies:
    2
    Views:
    6,099
  2. tom c
    Replies:
    1
    Views:
    205
    PeterKellner
    Jun 8, 2006
  3. palmiere
    Replies:
    1
    Views:
    417
    Erwin Moller
    Feb 9, 2004
  4. ravi kumar p
    Replies:
    0
    Views:
    223
    ravi kumar p
    Jun 2, 2004
  5. Bonge Boo!
    Replies:
    5
    Views:
    210
    Bonge Boo!
    Apr 25, 2005
Loading...

Share This Page