I currently have the following code: link
The following JavaScript code is intended to cause the buttons with the words "Previous" and "Continue", respectively, to return and advance a tab. But clicking does not happen.
<script type="text/javascript">
function prox(){
$('.nav-tabs').find('.active').next('li').find('a').trigger('click');
}
$('#btnA').click(function(){
$('.nav-tabs').find('.active').prev('li').find('a').trigger('click');
})
</script>
The buttons:
<div class="text-right">
<button type="submit" class="btn btn-primary" onclick="prox()">Salvar e Continuar</button>
<button type="button" class="btn btn-outline-secondary" id="btnA">Anterior</button>
</div>