I am trying to get one of my jQuery UI tabs to link to an external url and not the tab contents. I have read similar posts on here, like this Using jQuery UI Tabs. How would I make one of the tabs link to a URL rather than load a tab panel? with the same topic but becuase I know so little about how to code JQuery, I do not know how to implement it on my page to make it work.
My JQuery code is this:
<script type="text/javascript">
$(function(){
$('#tabs').tabs();
$('#dialog_link, ul#icons li').hover(
function() { $(this).addClass('ui-state-hover'); },
function() { $(this).removeClass('ui-state-hover'); }
);
});
</script>
HTML is this:
<ul>
<li><a href="#tabs-1">Downloads</a></li>
<li><a href="http://www.youtube.com"><img src="../../pics/youtube_logo.png" width="49" height="20" alt=""/></a></li>
</ul>