If I have the table:
<table id="mastermind_table_one">
<tr id="one">
<td id='first'>First</td>
<td id='second'>Second</td>
<td id='third'>Third</td>
<td id='forth'>Forth</td>
</tr>
</table>
How would I go about creating an array that contains each td?
I was hoping to get something like:
var array = ["First", "Second", "Third", "Forth"]
var array = $('#one td').map(function(){ return $.trim($(this).text()); }).get().