How a select fill other input in the same form | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How a select fill other input in the same form

I have one select with data mysql. After I select one row I need send other data to diferent input in the same form...i use php mysql and html

21st Mar 2019, 3:31 AM
Jesus Pineda
4 Answers
23rd Mar 2019, 11:42 AM
Pete Wright
Pete Wright - avatar
+ 1
Jesus Pineda I'm not sure if I get you right. What do you mean? Did you find an solution on your own? Or do you still need an answer? If so, could you post some code on Code Playground or an online code repository?
24th Mar 2019, 5:13 PM
Pete Wright
Pete Wright - avatar
0
Thx for answer.. Already have is Mi product data in Mysql I fill my select already with data but after select one product I need show the description and the price on the next 2 input.. I try use .for the description one function where show the description use document.GetElementById to do this but I cant use the same for the price. Other I try use is send all data on the option value in string separate for character...but I cant separate this using string function
24th Mar 2019, 5:08 PM
Jesus Pineda
0
Thx for you time ....
24th Mar 2019, 5:38 PM
Jesus Pineda