简体   繁体   中英

display the selected value of a combobox as text

Can I display the selected value of a combobox on the same page as text that updates as the selection changes? I'm trying to build a sentence using combo boxes and input fields.
The combobox represents a name for instance and needs to update in the sentence as it is changed.
I would appreciate any help I can get

Thanks

PHP is a server-side language. You will need to use JavaScript to do this client-side if you do not wish to reload the page.

Check out this SO Question for how to do this with JavaScript.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM