- Thu Feb 02, 2017 5:25 pm
#788912
I need to use javascript to grab the selected dropdown value and add it to a textbox so it can be edited.
How can I use javascript to move the selected text from a dropdown to a text box.
This code won't work:
How can I use javascript to move the selected text from a dropdown to a text box.
This code won't work:
Code: Select all
I thought it would work but it keeps returning the label of the dropdown box as if I were doing this: $("#textbox001").setValue($("#dropdown001").getText());
Code: Select all
Any suggestions? $("#textbox001").setValue($("#dropdown001").getLabel());