I use the following code as a tab plugin
$("#searchbox .tab_content").hide();
$("#searchbox ul.tabs li:first").addClass("active").show();
$("#searchbox .tab_content:first").show();
$("#searchbox ul.tabs li").click(function() {
$("#searchbox ul.tabs li").removeClass("active");
$(this).addClass("active");
$("#searchbox .tab_content").hide();
var activeTab = $(this).find("a").attr("href");
$(activeTab).fadeIn();
return false;
});
my html page contains 4 list items as a menu. When a page refreshes, it always loads the contents of the first element, as shown in the code. Each link to a div has its own corresponding form. If I name the same page in the action form, how can I download the relevant content. means that if I submitted a rental form for search, and then when the page refreshes, it should display a container for rental search instead of li: first
source
share