I\'m stuck on figuring out the logic to make a drop down menu keyboard accessible.
The HTML is structured as such (extra class names used for clarity):
This helped me... http://plugins.jquery.com/project/focus
It will detect if you're still within the parent automatically. It basically changes jQuery focusout to work this way instead, which I feel is how it should work.
$('#parent').focusout(function () {
console.log('focusout of parent');
});
I don't see why pressing tab to move textfield between the child elements should trigger focusout on the parent because you're still within that parent. Something must be happening that takes you out of it for a moment and I suspect it's a bug... anyone with me on this? Well anyway the plugin above fixes it. Just include it before your code to 'fix' this. Would love someone to explain why this isn't a bug if it isn't.
Thanks, Dom