未捕获错误:语法错误,无法识别的表达式:hover

这是问题的JSFidle: http : //jsfiddle.net/LRTh3/36/

$('div.boxes').mousedown(function (event) { // Error on this line var inner_box = $(".box").is(":hover"); if ( inner_box == true ) { alert("blue,gree,pink was clicked"); } else alert("You mousedowned on the red box"); });​ console: Uncaught Error: Syntax error, unrecognized expression: hover 

如果只显示一个 “.box”图层,则可以正常工作。 这是一个错误吗? 我该如何解决这个问题?

 $('div.boxes').mousedown(function (event) { // Error on this line var $target = $(event.target); if ( $target.is(".box")) { alert("blue,gree,pink was clicked"); } else alert("You mousedowned on the red box"); });​ 

我从jQuery API doc中解除了它