There are 4 <audio>
elements on a webpage. The client has asked for them to be available sequentially.
Meaning, the first audio should play, then the rest should remain disabled until the first one finishes, and so on.
In addition, they want the audio players to be visible on screen at all times, even when not actively playing (instead of adding them dynamically).
So, my question is: How can I disable an audio tag without using the disabled
attribute (<audio disabled>
)?
Thank you in advance.
Update: I would appreciate any CSS, JS, or JQuery solutions that could help achieve this. Essentially, I am looking to simulate a disabled button effect but for HTML audio tags.