Since the dot (.) has a special meaning in your css selector, you need to escape it, like so:
$("#error\\.password") For more info, see: http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F - Richard On Nov 6, 2007 10:11 AM, Derek Alexander <[EMAIL PROTECTED]> wrote: > > Unless I'm mistaken, JQuery (1.2.1) doesn't appear to be able to select by > id where the id contains a dot. > > e.g. > > <span id="error.password"></span> > > ... > > // the following does nothing > $("#error.password").append('Required field'); > > > > Is this correct, is there any workaround? > > Cheers, > D. >