I have the following piece of code:
[CODE=html]<html >
<body>
<div disabled="disab led">
<input type="checkbox" />Try this
</div>
</body>
</html>[/CODE]
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?
[CODE=html]<html >
<body>
<div disabled="disab led">
<input type="checkbox" />Try this
</div>
</body>
</html>[/CODE]
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?
Comment