Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

Accessibility support - give focus to tooltip


Project:clueTip - flexible, enhanced tooltip
Version:0.9.7
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Is it possible to give focus to the tooltip immediately after activating it so in the case of a keyboard user, the user doesn't have to tab through the entire page to reach the tooltip's contents? This is particularly important when the activation has been set to 'click' and a keyboard user would need to activate the 'x' to close the tooltip.

Comments

#1

Status:active» closed

Hi there,
it's certainly possible to do this (sorry for the delay in replying). I put up a demo page for you at http://test.learningjquery.com/cluetip/demo/givefocus.html

I'm pretty sure that IE won't allow an element to get focus unless it's a link or a form element, unless that element has its tabIndex property set. So, that's what I did: First set the clueTip's inner div to have a tabIndex of 1 and then gave it focus. I did this using the onShow option.

Let me know if you still have questions.