I am having problems when trying to change a tab
The code below is working
$('#tabs').tabs('select', 1);
WORKING FINE
The code below
var nextTab=$('#nextTab').val();
$('#tabs').tabs('select', nextTab);
IS NOT WORKING
The nextTab variable is a valid tab index
What am I missing?