[jQuery] Add extra content to the title attribute
Hi all,<div>
</div><div>This is hopefully simple. I have a bunch of links with titles, like TITLE="Facebook" and so on. I am adding JQuery to make the links open in a new window and would like to add some text to the title that says "this link will open in a new window", whilst keeping the original text. I'm using the "add" JQuery command, but this actually replaces the original title text.</div>
<div>
</div><div>$("a.newWindow").attr("title", " - This link will open in a new window");</div><div>
</div><div>The end result I would like to have is: title="Facebook - This link will open in a new window". </div>
<div>
</div><div>Could anyone point me in the right direction?!</div><div>Cheers</div><div>
</div>