On May 26, 2009, at 9:05 PM, RobG wrote:

The choice is clear - the OP can simply stop using jQuery selectors
for those elements, or stop using jQuery (or any other CSS selector-
based framework) at all.

Really? That's the only choice? As others have already noted, you can simply escape the "."

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

Given that it's an ID, the OP could use:

 $(document.getElementById('user.name'))...

Which is likely faster anyway.

True, but the speed difference is likely negligible.

The jQuery
documentation does, after all, refer to them as "weird" and "special"
characters.


If you think there is more appropriate terminology, feel free to change it. The documentation site is a wiki.


--Karl

____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com

Reply via email to