[jQuery] Re: BUG ? cannot detect the id with ":"

2007-09-14 Thread Klaus Hartl
Adwin Wijaya wrote: I just wonder why in jquery we need to escape such an "unusuall" characters ? (I found in prototype, we dont need to do that, I am not trying to compare, but i just wonder about that). The colon has special meaning in CSS, it denotes all kind of pseudo selectors: http://w

[jQuery] Re: BUG ? cannot detect the id with ":"

2007-09-14 Thread Erik Beeson
The : conflicts with CSS pseudo classes. See: http://docs.jquery.com/DOM/Traversing/Selectors#CSS_Selectors And: http://www.w3.org/TR/2001/CR-css3-selectors-2003/#pseudo-classes --Erik On 9/14/07, Adwin Wijaya <[EMAIL PROTECTED]> wrote: > > > I just wonder why in jquery we need to escape suc

[jQuery] Re: BUG ? cannot detect the id with ":"

2007-09-14 Thread Adwin Wijaya
I just wonder why in jquery we need to escape such an "unusuall" characters ? (I found in prototype, we dont need to do that, I am not trying to compare, but i just wonder about that). thx

[jQuery] Re: BUG ? cannot detect the id with ":"

2007-09-13 Thread John Resig
See: http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F --John On 9/13/07, Adwin Wijaya <[EMAIL PROTECTED]> wrote: > > Hi :) > > I am glad you are reache version 1.2 :) that's awesome .. but I would > like to report the bug, > it s

[jQuery] Re: BUG ? cannot detect the id with ":"

2007-09-13 Thread Sam Collett
You have to escape with \\ $("#this\\:is\\:only\\:example"); On Sep 13, 9:42 am, Adwin Wijaya <[EMAIL PROTECTED]> wrote: > Hi :) > > I am glad you are reache version 1.2 :) that's awesome .. but I would > like to report the bug, > it seems the jquery 1.2 (and before) still couldnt detect the id