quote problem on IE6 -
11-05-2009
, 06:24 AM
Hi,
here's my code :
var linkpath = "test'it";
var thislink = $('a[rel=" ' +linkpath+ ' "]');
It woks fine on Firefox with the character quote ' inside linkpath
value, but IE6 return a "no value" javascript error.
I just want IE6 to not understand linkpath inside quote as quote which
define the end of my attribute value.
I searched around, tried many ways to escape quotes, replace it with
& # 39 ; , etc... but I don't get it.
By the way, is there anyway to set thislink without using simple
quote, like :
var thislink = $("a[rel=" +linkpath+ "]"); // doesn't work, but you
get the idea
Can anyone help me ? Thanks a lot. |