I want to select all the elements with the class "play" and add them into array "esArreglo".
html file:
<td id="b1" class></td>
<td id="b2" class></td>
<td id="b3" class="play"></td>
<td id="b4" class="play"></td>
code:
$('td.play').each(function() {
notas.push(this.id)};
var esArreglo = notas.join(',');
How can I fix this? Thanks.
)at the end before yourvar esArreglostatement, ie});right after thenotas.push.... And move the;to after the.push()part.