DevelopmentIsMyPassion DevelopmentIsMyPassion - 1 year ago 158
jQuery Question

Hide jquery UI bootstrap tab

Is there any way to hide the Jquery UI bootstrap tab
I have written code below to show the particular tab

$('#myTab a:last').tab('show')

So i tried using below code to hide tab but it gives error that it has no method hide

$('#myTab a:last').tab('hide')

I have declared tabs in following way in my html

<ul class="nav nav-tabs" id="myTab">
<li><a href="#product" data-toggle="tab">Company</a></li>
<li><a href="#version" data-toggle="tab">Employee</a></li>

Answer Source

Have you tried $('#myTab a:last').hide() or $('#myTab a:first').hide() ?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download