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 > > 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:[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]> 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: [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 > > > > > > - Richard > > > > On 10/3/07, ab < [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" > > > > > > > > > > > > >