See http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_by_an_ID_that_has_characters_used_in_CSS_notation.3F
If you have general jQuery questions in the future, please post them to the main jQuery list: http://groups.google.com/group/jquery-en The list you've posted to is for questions about jQuery UI. Thanks. - Richard On Wed, Oct 21, 2009 at 1:56 PM, Phani <[email protected]> wrote: > > Hi, > > I have an text field whose ID is something like 'j_id1:username'. Now > if I try to retrieve the input field using jQuery('#j_id1:username'), > it does not work. It is only reading the id until the semicolon and > thus looking for an element with id 'j_id1'. > > I can not avoid having semi colons as this is a framework generated > code and it happens to be a standard convention. Is there any way I > can escape the semicolon or some how access the fields with semicolon > in the IDs? > > Please not that I have to access the fields by IDs. I know that the > ostensible work around is to use other attributes (like class). But > there are other constrains that keep me from doing this. > > any help is greatly appreciated. > > Thanks, > Phani > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
