On my freemarker page, I create 4 tabs. What I want: if the user is on the 4th tab, only after that he can see the submit button. When it is on the 1st, 2nd or 3rd tabs, it can see the next and previous button. How to create an active next or previous tab when a button is clicked using jquery or javascript? Anyone 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...
source share