1
Thanks to our colleague Dontvotemedown, I can change the tabs through buttons through this solution tabs with jquery. But when I try to change the tabs by Bootstrap modal, I can’t. 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 button id, IE by Modal I ask if he wants to register another service, if he click on Yes, was to go to another tab:
<button type="button" class="btn btn-primary" id="Sim" data-dismiss="modal">Sim</button>
as you are already using the Bootstrap could use the tabs of this framework
– Pedro Sanção
@Jose.Marcos, create a test so we can better understand what you need: http:/jsfiddle.net/
– Gabriel Rodrigues