0
I have a page where I display some audios when the user clicks and fires the sound.
Example HTML
<td><span class="audiospeak" data-lang="en" data-aid="of">of</span></td>
<td><span class="audiospeak" data-lang="en" data-aid="and">and</span></td>
Now I need to implement a button to play all the sounds of the page with 5 seconds interval.
I tried the following code
jQuery(function($){
var interval1;
setTimeout(function(){
interval1 = setInterval(function()
{
$('.audiospeak').trigger('click');
},
5000);
},
5000);
})
But he’s shooting all at once, where I might be missing?
yes, because Voce is clicking on everything that has the class .audiospeak. can you put more html code? Pass the code that mounts this table
– Julio Henrique