Here is the JSFidle to the problem: 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
Works if only one ".box" layer is presented. Is this a bug? How would I fix this?