February 11th, 2013LWTT: Tooltip works only for one item, it doesn’t appear on the other items
Knowledge Base support case for Likno Web Tooltips Builder, abstracted and stripped of all user’s private info.
Initial Email From: Paolo
Initial Email Subject: Only one tooltip is shown
Support Case Month: November 2012
Hope you are doing fine.
I have a question about tooltip builder. I tried to use it with dynamic data (like for edit/delete icons in records listing pages) but it works only on the first 2 icons (first record) of the list while for others is not showing.
How do I make it work for all? Is there any different id= code to be used?
Reply From: Likno Customer Support
It would help to see the page with the problem, but I think I guessed what the problem is.
In HTML each “id” is supposed to be unique and having duplicate “ids” in a page is considered invalid. Most browsers will give this “id” to the first element and remove it from the rest, while others (like IE) will produce an error and will not work at all.
If you want to use the same tooltip in several elements, then you need to use the “class” instead of the “id”
<a href="…" class="addButton">add</a>
Likno Customer Support
Like us on Facebook – Follow us on Twitter