In this bellow table, We can see two items TV and CAR with two different prices. I want display both two items with their minimum price without repeating duplicate items.
Sample Table:
<table>
<tr>
<th>Items</th>
<th>Price</th>
</tr>
<tr>
<td>TV</td>
<td>10000</td>
</tr>
<tr>
<td>TV</td>
<td>15000</td>
</tr>
<tr>
<td>CAR</td>
<td>750000</td>
</tr>
<tr>
<td>CAR</td>
<td>450000</td>
</tr>
</table>
Target Table:
<table>
<tr>
<th>Items</th>
<th>Price</th>
</tr>
<tr>
<td>TV</td>
<td>10000</td>
</tr>
<tr>
<td>CAR</td>
<td>450000</td>
</tr>
</table>
Try this.
Demo: http://jsfiddle.net/naveen/uknkS/