Checkboxes do not receive the focus when clicked on Chrome
问题 I just came across another strange behaviour on Chrome: when you click a checkbox or its label, the checkbox does not receive the focus (instead the body takes the focus). This behaviour can be observed here: http://jsfiddle.net/YfbR7/7/ ( see code sample here ) Is there any workaround to make the checkbox receive the focus, like on the other browsers? 回答1: You can also solve it like this $(function () { $("input[type=checkbox]").click(function (event) { $(this).parent().css("background",