Hi,
I have a set of divs table-like (with rows and cols), to display a soccer table. Now, I need to be able to order that table according to the key chosen, without refreshing the page and avoiding using ajax.
Being more specific, I need to catch the values inside each "columm" refeering to the key chosen and re-order the table.
I use jQuery, so the work should be fairly easy, just not sure how to re-order an array with the id of the team and the columm in cause. The table values are all numeric by the way.
Above is an example of the markup (row) :
<div class="rb">
<div class="cname">Benfica</div>
<div class="tdr bold">0</div>
<div class="tdg bold">0</div>
<div class="tdg bold">0</div>
<div class="tdg bold">0</div>
<div class="tdg bold">0</div>
<div class="tdr bold" style="margin-left: 5px;">0</div>
<div class="tdg bold">0</div>
<div class="tdg bold">0</div>
<div class="tdg bold">0</div>
<div class="tdg bold">0</div>
<div class="tdr bold" style="margin-left: 5px;">0</div>
<div class="tdg bold">0</div>
<div class="tdg bold">0</div>
<div class="tdg bold">0</div>
<div class="tdg bold">0</div>
<div class="tdg bold" style="margin-left: 5px;">0</div>
<div class="tdg bold">0</div>
<div class="tdr bold">0</div>
</div>
Any thougts?
Thanks in advance,
Filipe