SORTING LIST BOX

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SORTING LIST BOX

MJs123
I want to sort an list box by text and alternatively values also change
I search on net but i not  found convenient way

see the below select box and how i want actual result it might clear an idea

<select>
 <option value="14"> T </option>
  <option value="10"> A </option>
  <option value="20"> C </option> 
<select>

i want result like

<select> 
  <option value="10"> A </option>
  <option value="20"> C </option> 
 <option value="14"> T </option>
<select>

sort by option text and respectively value also change

reply