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

前端 未结 5 1984
既然无缘
既然无缘 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条回答
  •  萌比男神i
    2021-02-02 15:26

    I was able to do something similar using an observable in my model called editable and then in my input I used a data-bind="enable: editable” and this totally works in IE 7, 8 and 9.

提交回复
热议问题