Code: Select all
<div class='class1' id='id1'>
<audio src='link_to_audio' controls='' preload='none' controlslist='nodownload'>
</audio>
</div>
Code: Select all
<div class='class1' id='id1'>
<audio src='link_to_audio' controls='' preload='none' controlslist='nodownload'>
</audio>
</div>
Code: Select all
var audioElem = document.querySelector('#id1 audio');
audioElem.volume = 0.5;
audioElem.play();