Saturday, 14 September 2013

Sorting using jQUery

Sorting using jQUery

Please help sort the html code below using jQUery when the page is loaded.
<table class="productlist">
<tbody>
<tr>
<td class="productItem" id="catProdTd_5437359">
<div class="shop-product-small clear">
<div class="image">
<a
href="/dining/bambury-microfibre-dish-drying-mat-range"><img
border="0" alt="Bambury Microfibre Dish Drying Mat Range"
src="/images/products/bambury-microfibredishdryingmat-sm.jpg"
id="catsproduct_5437359"></a><br>
<p class="custom2">Linux</p>
</div>
</div>
</td>
<td class="productItem" id="catProdTd_5437366">
<div class="shop-product-small clear">
<div class="image">
<a
href="/dining/bambury-microfibre-terry-tea-towel-range"><img
border="0" alt="Bambury Microfibre Terry Tea Towel Range"
src="/images/products/bambury-microfibreteatowel-sm.jpg"
id="catsproduct_5437366"></a><br>
<p class="custom2">Apple</p>
</div>
</div>
</td>
<td class="productItem" id="catProdTd_3328776">
<div class="shop-product-small clear">
<div class="image">
<a
href="/dining/hyde-park-buzz-off-140x140cm-food-cover-range"><img
border="0" alt="Hyde Park Buzz Off 140x140cm Food Cover
Range" src="/images/products/hydepark-buzzoffs-sm.jpg"
id="catsproduct_3328776"></a><br>
<p class="custom2">Windows</p>
</div>
</div>
</td>
</tr>
</tbody>
</table>

No comments:

Post a Comment