Your right. The docs said:

"Note: if you wish to use any of the meta-characters described above
as a literal part of a name, you must escape the character with two
backslashes (\). For example:

#foo\\:bar
#foo\\[bar\\]
#foo\\.bar"

and so I did. I used \\: to escape the ":"

or I'm gettin you wrong?

On 14 Jan., 12:54, "jQuery Lover" <ilovejqu...@gmail.com> wrote:
> You can not have special character in attribute names. (it's not valid markup)
>
> Documentation is saying that your should escape VALUE bit if it
> contains special characters.
>
> -------------
> Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
>
> On Wed, Jan 14, 2009 at 2:11 PM, naden <n...@naden.de> wrote:
>
> > I'm using jQuery 1.2.6 and having an <a> element with the attribute
> > ajax:id="46"
>
> > <a href="#" ajax:id="46">Test Link</a>
>
> > According tohttp://docs.jquery.com/Selectors/attributeEquals#attributevalue
> > you have to escape ":" with double backslash like I did.
>
> > alert( $( "a[ajax\\:id='46']" ).attr( 'href' ) );
>
> > I tried a lot, but it's not working?
>
> > Any hint would be appreciated!
>
> > thanks

Reply via email to