I am trying to (eventually) split a form over several Bootstrap 3.x tabs, but I am having trouble with the previous and next buttons. Only the first next button functions an
For bootstrap 4
Previous Next $('.next').click(function () { $('.nav-tabs > .nav-item > .active').parent().next('li').find('a').trigger('click'); }); $('.previous').click(function () { $('.nav-tabs > .nav-item > .active').parent().prev('li').find('a').trigger('click'); });