Return to Snippet

Revision: 13268
at April 16, 2009 19:15 by penguin999


Initial Code
// incorrect
$('#my.id.name').val();

// correct
$('#my\\.id\\.name').val();

Initial URL

                                

Initial Description
One must escape "special characters" in id names using two backslashes.

Initial Title
Handling an ID's special characters in jQuery

Initial Tags
jquery

Initial Language
jQuery