Update text in textfield with two different dropdown boxes
I have one textbox that onclick updates a textfield. Now, what I need it to do is when they click on a second dropdown it will update a portion of text in the same textfield. Hope this helps.
What happens if they chose "random" from the second drop down?
Would you change
This is a random string of text.
to
This is a random string of text.
(in other words, change random to random, so no change?)
Sorry...but that's really as clear as mud.
The first drop down is going to populate a predetermined string of text into a text field. There will need to be changes within that string that I need to be able to change from another drop down.
If they select from the first drop down:
This is a random string of text
they will then need to pick from a list of choices from a second drop down:
funny
sad
long
If they choose sad than the text within the text area will then change to:
This is a sad string of text
I dont know how to explain this any clearer. If you dont understand than I will keep looking. Thanks for trying though.
beginning to get it, but there's one thing that will either make this easy or slightly tricky.
you posted before that the first drop down could look something like this:
This is a random string of text.
This is the second string of random text.
And finally, this is the third string of text.
So presumably for the first two options "random" would be the word you wanted to change. But what about if they choose the third?
Would it be that for each option you would want to store its "changeable word" elsewhere to refer to if that option is chosen?
Or is that a bad example, and will every option always have the same changeable word, meaning that the example should have been something like:
This is a random string of text.
This is the second string of random text.
And finally, this is the third random string of text.
with "random" getting changed out regardless of selection?
Actually, thinking about it, neither is that complicated but you do have to be clear about what you want to do - it may seem straightforward to you, but you are being a little vague.
beginning to get it, but there's one thing that will either make this easy or slightly tricky.
you posted before that the first drop down could look something like this:
This is a random string of text.
This is the second string of random text.
And finally, this is the third string of text.
So presumably for the first two options "random" would be the word you wanted to change. But what about if they choose the third?
Would it be that for each option you would want to store its "changeable word" elsewhere to refer to if that option is chosen?
Or is that a bad example, and will every option always have the same changeable word, meaning that the example should have been something like:
This is a random string of text.
This is the second string of random text.
And finally, this is the third random string of text.
with "random" getting changed out regardless of selection?
Actually, thinking about it, neither is that complicated but you do have to be clear about what you want to do - it may seem straightforward to you, but you are being a little vague.
I would prefer to be able to choose the word that needs to be changed because I actually need to add several drop downs but I just wanted to make it easier to explain. If I have to make the string more rigid I will but, like I said, I would prefer the option to use any word in the string. Thanks.