JavaScript Tabs

Invoke the hideCloseButtonAt method of the jqxTabs. 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='jqxTabs'>
    <ul style='margin-left: 20px;'>
        <li>Tab 1</li>
        <li>Tab 2</li>
        <li>Tab 3</li>
    </ul>
    <div>Content 1</div>
    <div>Content 2</div>
    <div>Content 3</div>
</div>
<div style='margin-top: 10px;'>
    <input type="button" id='jqxButton' value="Hide the CloseButton of the first tab" />
    <br />
    <input type="button" id='jqxButton1' value="trigger reorder" />
</div>

JavaScript

$('#jqxTabs').jqxTabs({
     width: 300,
     height: 150,
     reorder:true,
     theme: 'energyblue',
     showCloseButtons: true
 });
 $('#jqxButton').jqxButton({
     width: '300px',
     height: 30,
     theme: 'energyblue'
 });
  $('#jqxButton1').jqxButton({
     width: '150px',
     height: 30,
     theme: 'energyblue'
 });
 $('#jqxButton').click(function () {
     $('#jqxTabs').jqxTabs('hideCloseButtonAt', 0);
 });
  $('#jqxButton1').click(function () {
     $('#jqxTabs').jqxTabs({reorder:false});
 });