This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
106 Posts
layonill
24 days ago
5
Topic

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

Get a VIP membership
106 Posts
layonill
24 days ago
0
Level 1

is it possible?

106 Posts
layonill
20 days 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

4218 Posts
Kadministrator
19 days ago
2
Level 1

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

106 Posts
layonill
19 days ago
1
Level 2

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

4218 Posts
Kadministrator
17 days ago
0
Level 3
Get a Book for SEBLOD