Populate textarea on <select> onchange in PHP
Posted: Sat Jun 21, 2014 5:12 pm
I want to have a dropdown <select> menu, in the menu the <option value=''> needs to have the full context of a response someone is giving, and the display of it <option value='test'>this display</option> in the dropdown itself.
Above/below it will be a <textarea></textarea>
When the dropdown option is selected, I want the "value" of the selected option to suddenly appear in the <textarea>.
It would be good if they changed their selection, that what is in textarea clears, and is replaced by the selection.
The person who posted this is on the similar track to me:
http://stackoverflow.com/questions/1164 ... e-textarea
But I want it for a <select> dropdown.
Easy or not??
Above/below it will be a <textarea></textarea>
When the dropdown option is selected, I want the "value" of the selected option to suddenly appear in the <textarea>.
It would be good if they changed their selection, that what is in textarea clears, and is replaced by the selection.
The person who posted this is on the similar track to me:
http://stackoverflow.com/questions/1164 ... e-textarea
But I want it for a <select> dropdown.
Easy or not??