Thanks!

It worked perfectly with with jQuery. I had tried using single
backslashes to escape,
but never thought to try two. I appreciate the explanation as well :)

Take care,
Keith

On Aug 19, 4:26 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> Use two backslashes before each special character.
>
> A backslash in a jQuery selector escapes the next character. But you need
> two of them because backslash is also the escape character for JavaScript
> strings. The first backslash escapes the second one, giving you one actual
> backslash in your string - which then escapes the next character for jQuery.
>
> $('.first\\:\\:second')
>
> The rules for jQuery may be slightly different than CSS, but the double
> backslash should do the trick.
>
> -Mike
>
> > From: Keith Hughitt
>
> > Does anyone know if it possible to select elements with id's
> > or classname's that include colons or other similar
> > characters? So far I haven't found any evidence that "::" is
> > not valid as part of a CSS identifier, but have been unable
> > to select elements with a class "first::second."
>
> > Any ideas?
>
> > Thanks,
> > Keith

Reply via email to