I'd like to also be able to click on some option value in a html select I have and trigger the same javascript calls that the text-based links in the google translate widget.
<html>
<body>
<select id="lang-drop">
<option value="english">EN</option>
<option value="spanish">SP</option>
</select>
translate -> text: open the door!
</body>
</html>
Anyone have ideas on how to accomplish this? I can't figure out how to make clicking on the option the same behavior as clicking on the google translate text links.
(i had see
Implementing Google Translate with custom flag icons but i work with jquery3.1 and this doesn't work...)