cluetip + fx with single call applied to multiple select elements = effects only apply to first element
May 18, 2008 - 4:58am — gbh
This code correctly creates tooltips in all the img.helpicon elements. However, only the first element in the document gets the slideDown effect.
This worked well--all elements show the slideDown effect.
| Project: | clueTip - flexible, enhanced tooltip |
| Version: | 0.9.7 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I have a help icon img element repeated in multiple places in the document. I am using the following construct to add tooltips to the icon:
$(img.helpicon).cluetip({
fx: {open:'slideDown'},
...other cluetip parameters
});This code correctly creates tooltips in all the img.helpicon elements. However, only the first element in the document gets the slideDown effect.
As a workaround, I changed the code to explicitly walk through each element:
$(img.helpicon).each(function() {$(this).cluetip({
fx: {open:'slideDown'},
...other cluetip parameters
});});This worked well--all elements show the slideDown effect.

Comments
#1
fixed in 0.9.8! :)