Opened 6 years ago

Closed 6 years ago

#9640 closed bug (notabug)

Tooltip attaches to any element with title attribute

Reported by: rhull Owned by: rhull
Priority: minor Milestone: none
Component: ui.tooltip Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:

Description

Tooltip attaches to any element with a title attribute, even if that element's id is not referenced in the script. Attached code snippet will display tooltips for all elements with title attribute specified, not just the one with id=myanchor.

http://jsfiddle.net/rhull/Gnk4Y/

Change History (2)

comment:1 Changed 6 years ago by tj.vantoll

Owner: set to rhull
Status: newpending

Hi rhull,

Thanks for taking the time to contribute to the jQuery UI project. Your test case doesn't appear to work, it looks like jQuery is not included. Please update the test case to work. You can use this as a starting point - http://jsfiddle.net/tj_vantoll/FMUZL/.

Thanks.

comment:2 Changed 6 years ago by Scott González

Resolution: notabug
Status: pendingclosed

That's because tooltips use delegation. Please read the documentation for the items option.

Last edited 6 years ago by Scott González (previous) (diff)
Note: See TracTickets for help on using tickets.