Currently, I have a list of words generated based on selections from a form. When the selections change, so do the words. What I want to add is a simple link that contains the generated words in the URL.
In particular, in jsfiddle.net/9v9xu266/ I have a list generated based on which of apple, orange, and pear are selected. For example, if I select only apple and pear, then my list will say
-o Farmer1 Farmer2
What I want to add, below this list, is the following link:
<a href="XX.XX.XX.XX/exec?args=Farmer1%20Farmer2>Click Me</a>
That is, after the args= in the URL, I will always want the space-separated list of words.
So, as you can see, the "heavy lifting" (such as it is), has already been done here. But I don't know how to dynamically adjust the URL.