Is there a way to trigger the same JavaScript calls by clicking on an option value in an HTML select element as with text-based links in the Google Translate widget?
Check out this jsfiddle for more information
<html>
<body>
<select id="lang-drop">
<option value="english">EN</option>
<option value="spanish">SP</option>
</select>
translate -> text: open the door!
</body>
</html>
Do you have any suggestions on how to achieve this functionality? I am struggling to make clicking on the option behave like clicking on the Google Translate text links.
(I have tried following
Implementing Google Translate with custom flag icons, but it does not work with my version of jQuery 3.1...)