i use tippy.js with html template. My code as:
self._tippy = Tippy('.test', {
html: '#test_id',
....
....
onShow(){...}
...
})
In html template i have select tag with onclick event as:
<select id="language-list" onchange="changeLanguage()"></select>
i add options to the select dynamically. Everything seem OK but i can not reach changeLanguage event anywhere i don't understand where to write changeLanguage(){...} function to catch the event. i add the changeLanguage(){...} in tippy js onShow() or other places but can not reach event trigger. I only get the error message:
Uncaught ReferenceError: changeLanguage is not defined at HTMLSelectElement.onchange
On the other hand i try to use event handling with
document.getElementById('language-list').addEventListener('change'){...}
but no success. Is anyone tell me what to do and what i missing.
I test it in jsfidd https://jsfiddle.net/s6zcn7tx/46/ but same result.