Escape like: '#123.123'.replace(/\./g, '\\\\.'); // => "#123\\.123"
---Klaus On Mar 24, 7:00 pm, Harald Armin Massa <[EMAIL PROTECTED]> wrote: > hello, > > I am in the process of moving to jQuery. > > One challenge is: many of the relevant IDs of Elements have one or > more dots within them. > > I read within the FAQ that I can escape them when using the $("#some\ > \.id") selector. > > Is there another possible way, like $().getelementbyid("#123.123") ? > or is there an escaping-function allready "in the wild"? Or do I have > to come up with my own escaping function? > > Best wishes > > Harald