Bug Tracker

Modify

Ticket #6022 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

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@…
Blocking: Blocked by:

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...

Change History

comment:1 follow-up: ↓ 2 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid

comment:2 in reply to: ↑ 1 Changed 3 years ago by jwfbcn

Replying to 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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.