jquery - Is it possible to have a new title tag for each accordion heading? -
Hosts large amounts of information with my site categories / subcategories / sub-subkeys (tab) and then split into questions Answers in information and Accordion format.
I have to make a different title tag and / or url for each level
Example animal / reptile / snake / you-how-catch-a-snake (how do you snake Catch, this is a structured title).
Is this possible?
Multiple This makes a whole bunch of assumptions, but without the code, I can not really give you more fitting codes, you should give a general idea how it can work is. & lt; Title & gt; Tags are not allowed, but you can use the
document.title property JavaScript, for example, this will work:
$ ('# animals, #reptiles, #snakes, # how-to-hold-a-snake '). (Function (e) {// Assuming the selected tab. Get the selected class if (! $ (This) .hasClass ('selected')) {$ (this) .addClass ('selected'); // Suppose you document the same as the contents of the `title = gt; tab.title = this.innerHTML;} and {$ (this) .removeClass ('selected');}});
Comments
Post a Comment