Response title
This is preview!
I'm using tabs . The problem is that one need to implement a next and previous
option , so that the application reload the tab and change the url of it.
I used a script , but only sometimes works for me and I have to click twice on
link to perform the action below and above. Can someone help me ???
Here you have the piece of code I use.
function myFunction(linkUrl) {
var $tabs = $('#tabs').tabs();
var selected = $tabs.tabs('option', 'active');
$($tabs.data('uiTabs').tabs[selected]).find('.ui-tabs-anchor').attr('href', linkUrl);
$tabs.tabs('load', selected);
$tabs.tabs('option', 'active', selected);
}
Is not correct. Why????
$($tabs.data('uiTabs').tabs[selected]).find('.ui-tabs-anchor').attr('href', linkUrl);
© 2013 jQuery Foundation
Sponsored by and others.