I'm trying to make a custom checkbox, so I made something like that : http://jsfiddle.net/wQdUn/2/
The problem is that, on WebKit based browsers, the checkbox is toggled only when clicking on the content of the <span>, not on the box itself, while in Firefox I get the behavior I expect.
So I have two questions:
- Which one is the right behavior (i.e. the one conform to specifications)?
- How do I get the result I want in both browsers (and others...)?
Thanks.