disable all the elements in html

后端 未结 8 1222
清歌不尽
清歌不尽 2020-12-14 09:13

How can we disable all the elements in html through javascript.The easiest way...

8条回答
  •  独厮守ぢ
    2020-12-14 09:34

    The easiest way is to put all form elements you want to disable inside a

    and then disable the fieldset itself.

    An example: http://jsfiddle.net/xdkf9b8j/1/

    If you don't want the border around the fieldset, remove it per css.

提交回复
热议问题