Ich habe eine h1mit ID toptitle, die dynamisch erstellt wird, und ich kann den HTML-Code nicht ändern. Es wird einen anderen Titel haben, abhängig von einer Seite. Wenn es sich nun um ein Profil handelt, möchte ich es New wordmit jQuery ändern .
<h1 id="toptitle">Profile</h1> // Changing only when it is Profile
// to
<h1 id="toptitle">New word</h1>
Hinweis: Wenn der Text lautet Profile, ändern Sie ihn in New word.