I have been working on a form with multiple sections that I am using pagination for. There are 6 sections tabs and my paginations works for all of them except for two. The only difference between the four that work and the two that don't is that the two that do not work have variables. Do I need to do anything with the java script for these two sections because they have variables?
This is the HTML for the tabs
<div class="navbar">
<div class="navitem portfolio">Portfolio Summary</div>
<div class="navitem Client">Know Your Client</div>
<div class="navitem Beneficial">Beneficial Owner Summary</div>
<div class="navitem Investment">Investment Vehicle</div>
<div class="navitem Entities">For Entities That SOL is not Correspondent</div>
<div class="navitem Review">Review Approval</div></div>
This is the java script
//pagination
$('.navitem').on('touchstart click', function () {
$('.sections,.Submit').hide();
$('.navbar').find('.navitem').removeClass('selected');
if ($(this).hasClass('portfolio')) {
$('.section1').show();
$('.navbar').find('.portfolio').addClass('selected');
}
else if ($(this).hasClass('Client')) {
$('.section2').show();
$('.navbar').find('.Client').addClass('selected');
}
else if ($(this).hasClass('Beneficial')) {
$('.section3').show();
$('.navbar').find('.Beneficial').addClass('selected');
}
else if ($(this).hasClass('Investment')) {
$('.section4').show();
$('.navbar').find('.Investment').addClass('selected');
}
else if ($(this).hasClass('Entities')) {
$('.section5').show();
$('.navbar').find('.Entities').addClass('selected');
}
else if ($(this).hasClass('Review')) {
$(".section6, .Submit").show();
$('.navbar').find('.Review').addClass('Review');
}
})
$('.navitem.portfolio').trigger('click');
//end pagination
Let me know if there is any other information needed to help with this issue.