- Posts: 1
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Am I doing something wrong?<button id="Audio" onclick="playPause()">
<audio autoplay="" loop="" src=""> </audio>
Song</button><script>
var aud = ("Audio").children[0];
var isPlaying = false;
();
function playPause() {
if (isPlaying) {
();
} else {
();
}
isPlaying = !isPlaying;
}
</script>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.