Change tab via accesskey.
Hi all, does anyone know if its possible to select a tab via its accessKey?
I am adding tabs dynamically on load depending on some rules (user type etc) so I need to assign the accessKey attribute after the tabs are loaded with...
(Just working with the first one to see if I can get it working)
jQuery('#tabs .ui-tabs-nav li a:first').each(function()
{
jQuery(this).attr('accessKey', 'd');
});
However trying to use the accesskey fails to change the tab. Any thoughts?
If all else fails I could right some code to assign the tab selects to keypress events but I would prefer a cleaner way throguh tabs if possible.
Thanks