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