JavaScript NavBar

Invoke the "getSelectedIndex" method of jqxNavBar. Author: http://jqwidgets.com

by jqwidgets

HTML

<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id="navBar">
    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
    </ul>
</div>

JavaScript

$("#navBar").jqxNavBar({
    height: 40,
    theme:'energyblue'
});
var index = $("#navBar").jqxNavBar('getSelectedIndex');