My pleasure. Just giving back to the rest of the list. _____
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abubakar Saddique Sent: Friday, October 05, 2007 1:22 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Selector with Pipe (|) character not working thanks ..really appreciate your help On 10/5/07, Andy Matthews <[EMAIL PROTECTED]> wrote: Sure thing. The HTML spec found here: http://www.w3.org/TR/html401/types.html#type-name <http://www.w3.org/TR/html401/types.html#type-name> Says this: ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods ("."). _____ From: jquery-en@googlegroups.com [mailto: <mailto:jquery-en@googlegroups.com> [EMAIL PROTECTED] On Behalf Of Abubakar Saddique Sent: Friday, October 05, 2007 11:40 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Selector with Pipe (|) character not working may i ask why not pipes? On 10/5/07, Andy Matthews <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: I'd suggest not using the pipe as part of your ID or class names. Try using a dash - or underscore, then split on those. _____ From: jquery-en@googlegroups.com [mailto: <mailto:jquery-en@googlegroups.com> [EMAIL PROTECTED] On Behalf Of Richard D. Worth Sent: Friday, October 05, 2007 9:07 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Selector with Pipe (|) character not working You need to escape the pipe since it is a special character. Use \\| instead of | inside the selector. 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 <http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_elemen t_that_has_weird_characters_in_its_ID.3F> - Richard On 10/3/07, ab < <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] > wrote: I am trying to select an element with with ID which have pipe character (|).... i found that its not working CODE--HTML <input type ="text" id="firstName|1" name="firstName|1"/> CODE-SCRIPT alert($("#firstname|1").val() ); and output is "undefined".............................. Works well if i remove pipe Please help me..is it a bug or "feature"