0

I have a select box which is loaded from the database. I can't change nothing in the database, so i need to sort (from A to Z) the select box in the client side. I can use ither vbscript or javascript.

Thanks.

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
Itay.B
  • 3,991
  • 14
  • 61
  • 96

2 Answers2

0

Here's a previously answered Stack Overflow question that sorts a select box using Javascript: Javascript to sort contents of select element

Community
  • 1
  • 1
rekamoyka
  • 1,122
  • 11
  • 15
0

You can sort the recordset on the page after you get the data from the database.

Try using...

rs.Sort="FieldName"

and the data will be resorted.

StephenCollins
  • 785
  • 4
  • 10