For example I have something as below in HTML:
<table>
<tr>
<td class="getId">123</td>
</tr>
<tr>
<td class="getId">345</td>
</tr>
</table>
I'd like to create a for loop to loop over all the class name "getId" and store the words in an array so the output should be
var new = ['123','345'];
how may I do this?