Simply escape the colon with a \\:
$('#test\\:two');
http://jsfiddle.net/zbX8K/3/
See the docs: How do I select an element by an ID that has characters used in CSS notation?.
Simply escape the colon with a \\:
$('#test\\:two');
http://jsfiddle.net/zbX8K/3/
See the docs: How do I select an element by an ID that has characters used in CSS notation?.