Upseporobef
New Member
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:\[code\]<fieldset disabled> <input value="http://stackoverflow.com/questions/15646823/one" /> <input value="http://stackoverflow.com/questions/15646823/two" /></fieldset>\[/code\]Now, those two inputs are disabled. However, this seems to be totally borked on IE8. The inputs appear disabled but I can still type in them.Fiddle (Not as if JsFiddle actually works in IE8)Is there a cross-browser solution for this problem, without adding disabled to every form element (which would complicate my script). I could probably do something tricky like select the \[code\]<fieldset>\[/code\] in jQuery, then \[code\].each()\[/code\] through all the form elements and disable them - however, I'm actually setting the \[code\]disabled\[/code\] attribute using a Knockout binding so there's really no place to add such code. My last resort is to use a custom Knockout binding that disables all the children too, but le sigh.