Thanks to our colleague DontVoteMeDown, I can change button tabs through this solution tabs with jquery . But when I try to change the tabs for Bootstrap modal, I can not. I have the following code:
$(function() {
$( "#tabs" ).tabs();
$("#Sim").on("click", function()
{
$( "#tabs" ).tabs();
var indice = $('#tabs ul li a[href="#' + $(this).parent().prop("id") + '"]').parent().index();
$("#tabs").tabs("option", "active", (indice + 1));
});
("#Sim")
is the Id of the button, that is, by Modal I ask if he wants to register another service, if he clicked Yes, it was to go to another tab:
<button type="button" class="btn btn-primary" id="Sim" data-dismiss="modal">Sim</button>