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