Skip to main content

Bug Tracker

Side navigation

#6022 closed bug (invalid)

Opened February 03, 2010 09:50PM UTC

Closed February 03, 2010 10:06PM UTC

Last modified February 04, 2010 03:39PM UTC

jQuery Fails when an id has a decimal point

Reported by: jwfbcn Owned by:
Priority: major Milestone:
Component: core Version: 1.3.2
Keywords: identifier, decimal Cc: jesse@eonstreet.com
Blocked by: Blocking:
Description

Hello,

When I use the following code I get an undefined position()... when I remove the decimal it works...

<div id="id-343434.34">My id with decimal</div>

<a href="javascript:void(0)" onclick="alert($('#id-343434.34').position()">Find Position</a>

Now removing the decimal:

<div id="id-343434">My id withoutdecimal</div>

<a href="javascript:void(0)" onclick="alert($('#id-343434').position()">Find Position</a>

Racked my brain for 5 hours...

Attachments (0)
Change History (2)

Changed February 03, 2010 10:06PM UTC by john comment:1

Changed February 04, 2010 03:39PM UTC by jwfbcn comment:2

Replying to [comment:1 john]:

You right, sorry... I did search for it in the docs before posting the bug I just didn't find it nor did read all the Faqs... my bad.