There is no select
method for jQuery UI Tabs in this version. To get your functionality to work you need to change your code to
var i=$('#ui-tabs').tabs( "option", "active"); //get selected tab index
$('#ui-tabs').tabs( "option", "active", i+num ); // num is your tab choise (+1,-1)
This is worked for me. Try this.