This is a migrated thread and some comments may be shown as answers.

[Solved] How to go to page X of the tabStrip from inside

0 Answers 56 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jonisan
Top achievements
Rank 1
Jonisan asked on 12 Feb 2012, 06:50 PM
I have a TabStrip with 6 pages .Each page is done in a partial view . Each (page/partial view) has some controls and 2 or 3 partial views . What I want is from a partial view  of a partial view inside the tabStrip  ,when clicking on a button, to change the page of the tabStrip . I try it like this: 

<button class="t-button" onclick="Next()">Next</button>

<script type="text/javascript">
    function Next() {
        var tabstrip = $("#MainTabStrip").data("tTabStrip");
        var item = $("li", tabstrip.element)[$("2").val()];
        tabstrip.select(item);
    }
</script>

But I cant get to page "2" :(

Tags
TabStrip
Asked by
Jonisan
Top achievements
Rank 1
Share this question
or