$(document).ready(function(){
$('.scroll_nav li a').click(function(){
$('li a').removeClass("active_scroll");
$(this).addClass('active_scroll');
$('ul li .btn-br_all_gun').click(function(){
$('li a').removeClass("active_scroll");
});
});
});
<li><a href="{% url 'gun:browse_gun' %}" class="btn btn-br_all_gun">Browse All Your Guns</a></li>
{% for gunName in gunModelUserTieIn %}
<li><a href="#">{{ gunName.gun_model.model_name }}</a></li>
{% endfor %}
答案 0 :(得分:0)
#This code will work
$("#innovs_tabs").tabs({
active: localStorage.getItem("currentIdx"),
activate: function(event, ui) {
localStorage.setItem("currentIdx", $(this).tabs('option', 'active'));
}
});