Hi,
I have a form script with a dropdown box listing a lot of albums in this format:
"The Band - Name of the album"
there is another feild the users have to fill, it's a textbox where you have to write the band name. This is just making things harder for my members since the band name is already written in the album name, but filling the textbox is required for the process.
what i would like to do is the following:
When a user either click the submit button, or automaticaly when the dropdown box value is changed:
Automaticaly copy ONLY the text BEFORE the " - " from the dropdown to the textbox
Example:
If user select entry "abcdefg - hijklmnopqrstuvwxyz" from the dropdown, then:
Write "abcdefg" in the textbox
THANKS A LOOOT!