Reputation: 4487
Here's my non-working example to demonstrate the kind of thing i'm looking for.
Any suggestions?
Upvotes: 0
Views: 222
Reputation: 94469
You need to add a tabindex to the div.
<div style="height: 100px; width: 100px; background: red;" tabindex=0></div>
Then it should work
Click in the box and hit tab tab
Upvotes: 2
Reputation: 23250
I think you want mouseout.
$(function(){
$('div').mouseout(function(){
alert('Foo!')
})
})
Upvotes: 0
Reputation: 2793
I'm on a phone so can't see your example, but what's stopping you from using click, mouseover, etc.? Those events work on any element.
Upvotes: 0