开发者

Read-only select element [duplicate]

开发者 https://www.devze.com 2023-01-06 20:07 出处:网络
This question already has an开发者_如何学编程swers here: Closed 12 years ago. Possible Duplicate:
This question already has an开发者_如何学编程swers here: Closed 12 years ago.

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消