0

I have a select list with options : Select City, Seattle, Newyork, Amsterdam Other i want to keep the select city as it is and just sort the city names also the other option on last. Select City Amsterdam Newyork Seattle Other

Ketki Nimdeo
  • 109
  • 13

1 Answers1

-1

please see Sorting options elements alphabetically using jQuery

you can easly set aftewards $("#myselect").val("currentCity");

Community
  • 1
  • 1
Sebo Zoltan
  • 203
  • 1
  • 6