views:

61

answers:

1

Hi

i am having problem when try to change 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 vairiable is valid tab index

Its drive me crazy! What am i missing

Thanks

+1  A: 

Are you sure nextTab holds a valid tab index? If yes, don't know if this makes a difference, but try converting it to a Number:

var nextTab = Number($('#nextTab').val());
Anurag
cross my mind but...Thanks yoy save me
ntan