onchange of a dropdown

  • Thread starter Thread starter DaveF
  • Start date Start date
D

DaveF

I need to capture a selected value of the onchange dropdown and put it in a
textbox???
 
DaveF said:
I need to capture a selected value of the onchange dropdown and put it in a
textbox???

What problem are you experiencing when you try to do this?

John Saunders
 
DaveF said:
I just don't know how to do this clietside

Ok, you didn't say you had to do it client side!

I'm not a JavaScript wizard, but I suppose that you have to get an
"onchange" event on the dropdown. That event should do something like
"textbox.value = dropdown.value;".

You can add a client-side event to a server-side control via:

dropdown.Attributes("onchange") = "textbox.value = dropdown.value;"

John Saunders
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top