I have the following piece of code:
- <html >
-
<body>
-
<div disabled="disabled">
-
<input type="checkbox" />Try this
-
</div>
-
</body>
-
</html>
In IE, the check box is disabled, but not in firefox. It works if disabled attribute is set on checkbox element itself. But in my project, I have number of such checkboxes, so I wanted to know if there was a way to disable the div so that its children too will be disabled? Why isn't the disabled attribute value inherited by the children of div element in firefox?