<audio id='aclick'>
<source src="audio/click.mp3" type="audio/mpeg">
</audio>
$(document).click(function(){
if (click == 1) {
document.getElementById("aclick").play();
}
});
Everything is working smoothly except for hyperlinks.
I want the sound to play when clicking on any element, even hyperlinks.