proteam4
asked on
Checkbox selection not working with using <label> ???
Hi,
I have the code as follows.
<label class="labelHover" id="lbl252053" onMouseOut="document.getEl ementById( 'lbl252053 ').classNa me = 'labelHover'" onmouseover ="document.getElementById( 'lbl252053 ').classNa me = 'labelHover_hover'">
<input type="checkbox" name="cb252053" id="cb252053lbl252053" value="Y" />
16 and under
</label>
Here i want to do is, when any user hover their mouse over the label and checkbox then the bgcolor of label will change, for that i have used mousein and out caz in IE the css hovering was not working. All is working fine in all browsers, when user clicks on the label then my checkbox got selected. BUT in IE6.0 when i click on my abel then its not selecting the checkbox. To select the checkbox in IE6.0 i have to click on checkbox BOX otherwsie its not selecting it.
Please tell me how can i solve this problem.
Thanks
I have the code as follows.
<label class="labelHover" id="lbl252053" onMouseOut="document.getEl
<input type="checkbox" name="cb252053" id="cb252053lbl252053" value="Y" />
16 and under
</label>
Here i want to do is, when any user hover their mouse over the label and checkbox then the bgcolor of label will change, for that i have used mousein and out caz in IE the css hovering was not working. All is working fine in all browsers, when user clicks on the label then my checkbox got selected. BUT in IE6.0 when i click on my abel then its not selecting the checkbox. To select the checkbox in IE6.0 i have to click on checkbox BOX otherwsie its not selecting it.
Please tell me how can i solve this problem.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.