Jump to content

Get the value from DropDown box and paste it in Textbox

- - - - -

  • Please log in to reply
2 replies to this topic

#1
NumOne

NumOne

    Newbie

  • Members
  • Pip
  • 9 posts
Hi

I have a drop down box that has students' IDs. I need to copy the ID that the user selects to a text box.

How can I do that ?

Thanks

#2
oldhendra

oldhendra

    Learning Programmer

  • Members
  • PipPipPip
  • 30 posts
Hi,
There are lot of dropdown box types out there, which one you are using?

#3
yassinebelkaid

yassinebelkaid

    Newbie

  • Members
  • PipPip
  • 20 posts
Well, I think it has to do with Javascript as the page shouldn't reload, because php will reload the page and you will lose your data, so Javascript will do the work, as it will take the value of an ID from the dropdown and give it to text box. this is how it will work.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users