I have a page with a dropdown list and a link tag.
I am unable to modify the html on the page at all but I can add javascript to the page.
I need to be able to translate the text of the .goButton
element when a user selects a different language option from a dropdown list.
How can I accomplish this with javascript alone?
<a class="goButton" ... >Send</a>
<select name="ddlLanguages" id="ddlLanguages" class="form-control">
<option value="zh-CN">Chinese (Simplified, PRC)</option>
<option selected="selected" value="en-GB">English (United Kingdom)</option>
<option value="en-US">English (United States)</option>
<option value="fr-FR">French (France)</option>
<option value="de-DE">German (Germany)</option>
<option value="it-IT">Italian (Italy)</option>
<option value="pt-BR">Portuguese (Brazil)</option>
<option value="es-ES">Spanish (Spain)</option>
</select>