UI tabs, select and move to anchor

UI tabs, select and move to anchor


Any way to programatically to select a tab and move to an anchor
within it? My method below doesn’t work.
$tabs.tabs(’select’, 1);
var targetOffset = $(’#target’).offset().top;
$(’html, body’).animate({scrollTop: targetOffset}, 400);
Thanks