HTML form readonly SELECT tag/input

前端 未结 30 2805
陌清茗
陌清茗 2020-11-22 08:28

According to HTML specs, the select tag in HTML doesn\'t have a readonly attribute, only a disabled attribute. So if you want to keep

30条回答
  •  执笔经年
    2020-11-22 09:02

    In IE I was able to defeat the onfocus=>onblur approach by double-clicking. But remembering the value and then restoring it in the onchange event seems to handle that issue.

    
    

    You can do similar without expando properties by using a javascript variable.

提交回复
热议问题