Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
As long as you wait for an answer, you can give birth.
Found the solution myself. Maybe someone will come in handy.
Everything is done elementary, just add a script to the page.
$(document).ready(function() {
if(location.hash) {
$('a[href=' + location.hash + ']').tab('show');
}
$(document.body).on("click", "a[data-toggle]", function(event) {
location.hash = this.getAttribute("href");
});
});
$(window).on('popstate', function() {
var anchor = location.hash || $("a[data-toggle=tab]").first().attr("href");
$('a[href=' + anchor + ']').tab('show');
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question