JavaScript NavigationBar
Invoke the expandAt method of the jqxNavigationBar.
Author: http://jqwidgets.com
HTML
<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id='jqxnavigationbar'>
<!--Header-->
<div>Header 1</div>
<!--Content-->
<div>Content 1</div>
<!--Header-->
<div>Header 2</div>
<!--Content-->
<div>Content 2</div>
</div>
<div>
<input style="margin-top: 20px;" type="button" id='jqxButton1' value="Expand the first item" />
<input style="margin-top: 20px;" type="button" id='jqxButton2' value="Expand the second item" />
</div>
JavaScript
$("#jqxnavigationbar").jqxNavigationBar({
width: 400,
height: 200,
theme: 'energyblue',
expandMode: 'toggle'
});
$("#jqxButton1, #jqxButton2").jqxButton({
height: '30px',
theme: 'energyblue'
});
$('#jqxButton1').on('click', function () {
$('#jqxnavigationbar').jqxNavigationBar('expandAt', 0);
});
$('#jqxButton2').on('click', function () {
$('#jqxnavigationbar').jqxNavigationBar('expandAt', 1);
});