TipTip with attribute: "class" hides element

novalex's Avatar

novalex

19 Feb, 2012 11:18 PM

I have a list of icons, each icon is in an

  • . This is the script for tiptip: $('.icons li').tipTip({attribute: "class", defaultPosition: "right"}); .
    The problem is, all the icons disappear. The
  • is still there, the tooltip correctly displays each class name, but the icons are gone.
    If i delete the TipTip code, they get shown. Any help?
  1. 1 Posted by novalex on 19 Feb, 2012 11:25 PM

    novalex's Avatar

    I'm sorry, I meant to say each icon is in a '

    • ' container.
      Anyway, I saw that TipTip removes the original attribute. I've commented that line out, and now it works. Is there any way to stop it removing the class attribute? I don't want to lose functionality with the title attribute.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac