0

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?

1 Answer 1

1

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());
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.