select

Gets selected item if no parameters are passed. Or selects/deselects specific item.

Parameters

element HTMLElement|jQuery (required)

The element to be selected/deselected.

state Boolean (optional)

Forces the selected state to the specified one.

Returns

jQuery if no element is specified returns the currently selected one.

Example

<nav id="bottomnav"></nav>

<script>
    var bottomNav = $("#bottomnav").kendoBottomNavigation({
        items: [
            { text: "Home", icon: "home" },
            { text: "Info", icon: "info-circle" },
            { text: "Contact", icon: "envelope" }
        ]
    }).data("kendoBottomNavigation");

    bottomNav.select(bottomNav.item(0));
    alert(bottomNav.select().text());
</script>
In this article