Can not set readonly on input field in IE

前端 未结 3 1841
死守一世寂寞
死守一世寂寞 2021-01-18 02:26

I have a simple input field:


and some JQuery code:

$(e.curre         


        
3条回答
  •  盖世英雄少女心
    2021-01-18 02:33

    'Read-only' input element doesn't work consistently in IE 8,9, 10 or 11.

    In this case, we can use onkeydown="javascript: return false;" in the input element.

提交回复
热议问题