some time ago, I asked this jquery tab question to keep the tab open, which is a subid in the url , and you can see that I found the answer to my question, now I'm trying to change it so that every time you change tab to tab, it changes the subid of tid in the header, at the moment it just changes the tid of the variable on any tab_id, so when you click back you can open the specific one you left with, but this time I want it to update tid in the title when scrolling through tabs.
If the link to my previous answer does not appear here, this is my code
function getParameterByName(name) { name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regexS = "[\\?&]" + name + "=([^&#]*)"; var regex = new RegExp(regexS); var results = regex.exec(window.location.search); if (results == null) return ""; else return decodeURIComponent(results[1].replace(/\+/g, " ")); } $(document).ready(function () { $(".tab_content").hide();
Let me know if you need anything else and sorry if this is a bit confusing.
EDIT: In other words, if I add? tid = 2 in the header, it will go to the second tab, but will not be automatically updated when the tab changes
source share