Find TabStrip index

ε祈祈猫儿з 提交于 2019-12-01 14:23:03

问题


Is it possible to find the index of a tab in a KendoUI TabStrip? I need to find the index (number) of the tab that I select and I know that select() returns me current tab but I don' t know how to convert this to the number.


回答1:


Found the solution:

$("#tabstrip").data("kendoTabStrip").select().index();



回答2:


    function select(e) {
        var x = e.item;
        var index= $(e.item).index();
        $(".tabindex").val(index);
    }

as nemesv said in https://stackoverflow.com/a/15646629/2127493



来源:https://stackoverflow.com/questions/13606544/find-tabstrip-index

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!