34 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChordsofLife says

I have an entire site on index.php that changes content via jQuery. The order goes like this:

title, navigation, div a, div b, div c

Logically, I hide what I don’t need and show what I do. My issue is that I want to be able to change the title (i.e specify the “page”). How would I go about doing that? Thanks.

380 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
celtathemes says

You might search for a jQuery plugin. I do not know exactly what you want, Tabs or Slides maybe.

76 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
duane_ashworth says

when you change the div thats shown also alter the title tag.

$('a').click(function(){ show your div $('title').html('page title'); });

this should work , look into it in the jquery docs , you should be able to work it out from there

78 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
fredwu says

If your title tag is <h2 id="title">Title of the Page</h2>, then:

$("h2#title").text("New Title")
by
by
by
by
by
by