Open sjuliper7 opened 5 years ago
Thank you for your suggestion. I've updated the documentation with the sample code updated.
Thank you for your response Mr Frank, can you show me the html form lyrics_container
because i have changes for that
ex :
<div id="subtitles"></div>
and script like this document.getElementById("subtitles").querySelectorAll('p')[lyric_selected].setAttribute('selected', 'selected');
and the result still same Uncaught TypeError: Cannot read property 'setAttribute' of undefined
Thank you Mr Frank
The documentation has been updated just now, and added the code for adding <p>
elements to the lyrics container DOM, each <p>
element contains the text of each lyric (While it's better to use vue.js for better DOM management).
lyric_selected.setAttribute is not a function at HTMLAudioElement.
i got error when lyric_selected.setAttribute('selected','selected'); i dont know why, but the error is setAttribute is not function