Link to home
Start Free TrialLog in
Avatar of proteam4
proteam4

asked on

Checkbox selection not working with using <label> ???

Hi,

I have the code as follows.

<label class="labelHover" id="lbl252053" onMouseOut="document.getElementById('lbl252053').className = 'labelHover'" onmouseover ="document.getElementById('lbl252053').className = '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
ASKER CERTIFIED SOLUTION
Avatar of nivlam
nivlam
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial