Coming Soon

jQuery(document).ready(function() { var select = jQuery('#hour-select'); // Rebuild the options array var options = select.children('option').get(); // Sort the options manually options.sort(function(a, b) { var valueA = parseInt(jQuery(a).val()); var valueB = parseInt(jQuery(b).val()); // Place '12' at the end after '11' if (valueA === 12) return 1; if (valueB === 12) return -1; return valueA - valueB; }); // Append sorted options back into the select select.empty().append(options); });