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 & 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');}});   

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.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -