I am using the Accordion widget from the jQuery user interface.
Whenever I click a title to expand a section, that title (in fact, the link inside the h3 element) is highlighted. In Chrome, it has a blue highlight, as if it were the selected field in the form.
I need to get rid of the blue backlight, so I cracked the code below, and it seems to be working so far.
However, I am wondering if there is a better / cleaner way to do this in jQuery. Is it correct?
$(function() { $( "#mainnav" ).accordion().blur($('#mainnav')); });
jquery-ui
Ben coppock
source share