I'm struggling to figure out how to make a jQuery cluetip display on focus of the trigger text link which uses hover. I need it to work when tabbing (onfocus) through content for accessibility purposes.
<script>
$(function(){
$('a.tip').cluetip({width:200, local:true, cursor:'pointer', sticky: true,closePosition: 'title', arrows: true, titleAttribute: 'title', showTitle:true });
$(".tip-content").hide();
$('a.tip').focus(function() {
$(this).click();
});
});
</script>
HTML:
<a id="load-local" class="tip" href="#cc" rel="#cc" title="Tooltip">Tooltip link</a>
<span class="tip-content" id="cc">Tool tip content</span>
Totally frustrated. It seems like it should be a simple thing to do, but I'm not having luck.