2
Answers

btn link click to switch tab not working

Marius Vasile

Marius Vasile

1y
542
1

I have a 3 tabs and 3 divs. second tab is active and what I want to do is on a click on a link button in second div to switch to third tab and show content of its div. The problem is that it will only switch for only 1 second and then revert back. It seems I can't put the code for a hyperlink ?? so I add a picture instead

jquery

$("#txtFormaManifestare").on("click", function () {

    $("#MasuriTab").addClass("active");
    $("#DivActivitateMasuriTab").addClass("active");

});

 

Answers (2)