jQuery custom sort in span?
I have a complicated system in PHP, and if i make it in PHP i need to run
it though 10 different tables, which is pretty brainkilling.
Now i found a solution for custom jQuery sort, but cannot find any usefull
examples to make it working my way.
I currently have an link that should sort the types (asc|desc)
And my loop with entries is currently
<tr class="lol" onclick="location.href='<?=$productlink?>'"
style="cursor:pointer">
<td style="width:250px;border-bottom:1px solid #eee"><?=$fullPath?></td>
<td style="width:250px;border-bottom:1px solid #eee">
<!-- sortable -->
<span class="hiddenPrice">25,000</span>
<span class="hiddenKilometers">10,000</span>
<span class="hiddenYear">1982</span>
<span class="hiddenMake">Ford</span>
<!-- /sortable -->
<strong style="font-size:15px"><?=$row['varenavn1']?></strong><br>
<em>Pris: <?=number_format($row['salgspris']);?> kr.</em>
<p><?=substr(strip_tags($row['lang_varebeskrivelse']), 0, 150)?>...</p>
<a href="<?=$productlink?>" class="greenButton" style="color:#fff">SE
MERE</a><br>
</td>
I have different values inside the span's. But how can i sort via. link to
those values??
Hope someone can help me though this.
No comments:
Post a Comment