jQuery click event firing twice?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: This is a fairly weird case, you can see the code here: http://jsfiddle.net/zpZtH/2/ 回答1: you should not wrap input elements by using a label element, try this: <label for = "average-data" class = "section-view-time-checkbox" > <span class = "custom checkbox checked" ></span> Average </label> <input type = "checkbox" id = "average-data" style = " display : none ; " > http://jsfiddle.net/zpZtH/7/ 回答2: http://jsfiddle.net/Cc55g/ You need to call event.preventDefault() within your click handler. This prevents the default click action