contentElement

Obtains the DOM element that encloses tab content by its tab index in the TabStrip.

Important: To remove the tab contents safely, use contentHolder to get the element to empty.

Obtain the content element representing the first tab in a TabStrip

<div id="tabstrip">
    <ul>
        <li>Tab 1</li>
        <li>Tab 2</li>
    </ul>
    <div>Content 1</div>
    <div>Content 2</div>
</div>

<script>
    var tabStrip = $("#tabstrip").kendoTabStrip().data("kendoTabStrip");
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(tabStrip.contentElement(0));
</script>

Parameters

itemIndex Number

The index of the tab in the TabStrip.

Returns

Element The DOM element enclosing tab content by its tab index in the TabStrip.

In this article
contentElement
Not finding the help you need?
Contact Support