Paul Collins wrote:
> I'm using the "add" JQuery command,
> $("a.newWindow").attr("title", " - This link will open in a new window");
I can't see any "add" there ?
The proper code would be
$("a.newWindow").attr("title",$(this).attr("title")+" - This link will
open in a new window");
L
Paul Collins wrote:
Hi all,
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.
$("a.newWindow").attr("title", " - This link will open in a new window");
The end result I would like to have is: title="Facebook - This link
will open in a new window".
Could anyone point me in the right direction?!
Cheers
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.392 / Virus Database: 270.13.50/2296 - Release Date: 08/11/09 06:10:00