This site uses cookies and similar technologies.

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

I understand
122 Posts
layonill
3 months 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
122 Posts
layonill
3 months ago
0
Level 1

is it possible?

122 Posts
layonill
2 months 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
2 months ago
2
Level 1

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

122 Posts
layonill
2 months ago
1
Level 2

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

4229 Posts
Kadministrator
2 months ago
0
Level 3
Get a Book for SEBLOD