Is there any way to disable a bunch of form elements at once?

前端 未结 5 1972
既然无缘
既然无缘 2021-02-02 14:42

I\'d like to disable a section of HTML form elements depending on some conditions. This seems to be the ideal way to do that:

<
5条回答
  •  忘了有多久
    2021-02-02 15:19

    In short: No. The reason behind this is because the lack of support in IE8 and the disabled attribute on the fieldset element.

    Source

    In IE7 and IE8, the attribute only disables form elements in the < legend >.

    I'm afraid you should look for a custom solution like the answers from other users / your own custom binding.

提交回复
热议问题