0

Possible Duplicate:
Readonly SELECT tag

How do I make a select element read-only? I don't want to make it disabled because I am also posting its value.

Take care.

Community
  • 1
  • 1
Jamal Abdul Nasir
  • 2,557
  • 5
  • 28
  • 47

1 Answers1

0

Create a hidden input item, and assign the Select value to this hidden item whenever the Select value changes. You can then disable the select box, and you'll still get the hidden value posted.

Fosco
  • 38,138
  • 7
  • 87
  • 101