I have some radio buttons with different numeric values. How to apply autoselect option on which radio button value is smaller that other radio button values.
Ex:
<table class="tbl">
<tr>
<td><input type="radio" name="" value="15" /></td>
</tr>
<tr>
<td><input type="radio" name="" value="45" /></td>
</tr>
<tr>
<td><input type="radio" name="" value="10" /></td>
</tr>
<tr>
<td><input type="radio" name="" value="12" /></td>
</tr>
<tr>
<td><input type="radio" name="" value="25" /></td>
</tr>
</table>
This might be solved without
each. Just find index of min value and select this radio button on this index like below.