This changes the order in the drop-down list. You will need to set the order depending on your own criteria:
<select id="the-select"> <option value="1">First option</option> <option value="2">Second option</option> </select> <script type="text/javascript"> //<![CDATA[ $(function (){ $("#the-select option[value=2]").insertBefore("#the-select option[value=1]"); }); //]]> </script>
Seb Mar 19 '09 at 0:12 2009-03-19 00:12
source share