Skip to main content

Search and Top Navigation

#9640 closed bug (notabug)

Opened October 30, 2013 04:47PM UTC

Closed October 30, 2013 06:43PM UTC

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/

Attachments (0)
Change History (2)

Changed October 30, 2013 06:39PM UTC by tj.vantoll comment:1

owner: → 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.

Changed October 30, 2013 06:43PM UTC by scottgonzalez comment:2

_comment0: That's because tooltips use delegation. Please read the [documentation for the items option](http://api.jqueryui.com/tooltip/#option-items).1383158620881257
resolution: → notabug
status: pendingclosed

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