jQuery UI tabs and external links
I have a some tabs and some links outside the tabs on the same page. When a link is clicked I want to
- switch to a certain tab
- load the href of whichever link was clicked into that tab
1. switch to a certain tab - I have done no problems with:
- $('.event_link').click(function() {
- $tabs.tabs('select', 2);
- return false;
- });
But I cant work out how to achieve 2. load the href of whichever link was clicked into that tab. I've tried adding this but it didnt work
- $asd=$(this).find("a").attr("href");
- $tabs.load($asd);
Any help would be great, thanks in advance