-1
I have a table with 4 columns, and the last one a "Send" action button, where it will trigger an email.
I need to create a loop where every 2 seconds Jquery clicks the Send from a Row action. After 2 seconds the click would be on the next Row and so on...
Below the table mounted:
<table class="table table-striped table-hover table-sm">
<tr class="bg-dark text-light">
<th class="hidden-xs">Nome</th>
<th>Email</th>
<th class="text-center" style="width: 1em;">Marcar</th>
<th class="text-center" style="width: 1em;">Ação</th>
</tr>
<?php
$count = 0;
foreach($result as $row) {
$count = $count + 1;
echo '
<tr>
<td class="hidden-xs">'.$row["customer_name"].'</td>
<td>'.$row["customer_email"].'</td>
<td class="text-center">
<label class="label--checkbox">
<input type="checkbox" name="single_select" class="single_select checkbox" data-email="'.$row["customer_email"].'" data-name="'.$row["customer_name"].'" />
</label>
</td>
<td>
<button type="button" name="email_button" class="btn btn-gray rounded btn-xs email_button btn-row-acao-enviar" id="'.$count.'" data-email="'.$row["customer_email"].'" data-name="'.$row["customer_name"].'" data-action="single">Enviar</button>
</td>
</tr>
';
}
?>
</table>
Important to post a [mcve] of what you tried and describe what difficulty found.
– Bacco
I know the rules, but I didn’t know where to start. Note that I posted a minimal example of what I did!
– André Albson