In my freemarker page I am creating 4 tabs. What I want: If user is in 4th tab, only then can he see the submit button. When he is in 1st, 2nd or 3rd tab he can see next and previous button. How do I create active next or previous tab on button click using jquery or javascript? Any one please help...
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#declarations1" data-toggle="tab">Declarations</a></li>
<li><a href="#hradetails1" data-toggle="tab">HRA Details</a></li>
<#if IsHidePrevEmpITDeclaration?exists && IsHidePrevEmpITDeclaration != "true">
<li><a href="#preEmpSalary1" data-toggle="tab">Previous Employment Salary</a></li>
</#if>
<li><a href="#otherIncome1" data-toggle="tab">Other Income</a></li>
</ul>
</div>
thanks in advance...