开发者

Read-only select element [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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜