DOM 'disabled' property in javascript

前端 未结 5 1630
半阙折子戏
半阙折子戏 2020-12-21 02:59

I can\'t find a definitive answer to how to use the disabled property to disable form elements in javascript.

Some places say it\'s a simple boolean. Other\'s say to

5条回答
  •  Happy的楠姐
    2020-12-21 03:28

    Setting disabled to true works on all input types. I've tried it in chrome,firefox,ie edge. Try this;

    
    
    
    
    
    
    
    
    
    
    
    

提交回复
热议问题