Read only drop down

Posted by hakan on Stack Overflow See other posts from Stack Overflow or by hakan
Published on 2010-05-13T14:07:20Z Indexed on 2010/05/13 14:44 UTC
Read the original article Hit count: 402

Filed under:
|

Is there a good way to make an HTML dropdown read only. Using disabled attribute of select seems to work, but the value is not posted.

<select disabled="disabled">

I have a complex page with lots of javascript and ajax. Some actions in the form cause to drop down to be read only some actions let user decide the value.

© Stack Overflow or respective owner

Related posts about XHTML

Related posts about asp.net-mvc