HTML form readonly SELECT tag/input

前端 未结 30 2388
陌清茗
陌清茗 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 08:59

    What I found works great, with plain javascript (ie: no JQuery library required), is to change the innerHTML of the

    Sample Javascript:

    document.getElementById('day').innerHTML = '';
    

    After:

    
    

    This way, no visiual effect change, and this will POST/GET within the

    .

提交回复
热议问题