Is it possible to flip/reverse td values of a table.
If I fx: put a class on the td section I want flipped and name it 'valuesToFlip'
$('.valuesToFlip').reverse() // not working.
reverse() can be used with array, to convert it to array use get() and apply reverse(). Now for updating the order append back them using append()
var $td = $('.valuesToFlip');
$td.parent().append($td.get().reverse());
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<table>
<tr>
<td class="valuesToFlip">1
</td>
<td class="valuesToFlip">2
</td>
<td class="valuesToFlip">3
</td>
</tr>
</table>
thistosiht? Or reverse the order of thetdcells in the row? Or reverse the order oftdin the entire table...?