我试图在 Safari 中“选中”复选框时添加一个类,并在未选中时将其删除 [在我正在使用的其他浏览器中。bind("focus", function() { 但在 Safari 中它不起作用?]
我目前正在使用
jQuery('.top_class input').bind("focus", function(){
jQuery(this).parents('.row').addClass("add_over");
})
.bind("blur", function() {
jQuery(this).parents('.row').removeClass("add_over");
});
这在 Safari 中不起作用 - 如何让代码在 Safari 中工作?