131 Posts
layonill
5 years ago
5
Topic

I want to populate a textarea with the value of a select dynamic, how do I do that?

Get a Book for SEBLOD
131 Posts
layonill
5 years ago
0
Level 1

is it possible?

131 Posts
layonill
5 years ago
0
Level 1

I found this script to do it <script> function myFunction() { var mylist = document.getElementById("myList"); document.getElementById("demo").value = mylist.options[mylist.selectedIndex].text; } </script>

from w3schools, but in the id's, I don't know if I have to put the name of the fields, of the number of id of the fields

4229 Posts
Kadministrator
5 years ago
2
Level 1

Yes, you need to create custom javascript, problably easiest way is to use jQuery. 

131 Posts
layonill
5 years ago
1
Level 2

Sorry for the question, what would be the query in this case?

4229 Posts
Kadministrator
5 years ago
0
Level 3
Get a Book for SEBLOD