I am using Foundation for my CSS, and it uses fieldset for form style. I cannot therefore use it on my form to disable my form under certain conditions without pretty much overwrite all the CSS of it (which I actually use in my form for other reasons!)

I tried to apply ng-disabled to the form, div or something else, but nothing worked! What are my options?

有帮助吗?

解决方案

The main problem here is that the appearance of the contents of a disabled fieldset (e.g. inputs, buttons etc) depends on their having a disabled fieldset parent. If you remove or replace the fieldset, then the appearance (and behaviour) of your controls won't be very useful (or appealing).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top