Also in the FAQ:

http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F

- Richard

On Thu, Sep 25, 2008 at 10:37 AM, MorningZ <[EMAIL PROTECTED]> wrote:

>
> Straight from the Docs (http://docs.jquery.com/Selectors)
>
> ====================================================
> 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
> ====================================================
>
>
> So to select
>
> <input type="text" id="test:name">
>
> it would be:
>
> $("input#test\\:name")
>
>

Reply via email to