HTML form readonly SELECT tag/input

前端 未结 30 2326
陌清茗
陌清茗 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:03

    another way of doing a readOnly attribute to a select element is by using css

    you could do like :

    $('#selection').css('pointer-events','none');
    

    DEMO

提交回复
热议问题