This repository has been archived by the owner on Jan 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 241
JS cannot modify the HTML in a tooltip. #63
Comments
Do you have an example I could look at? |
Sorry for the delay, here is a minimal example. Notice I have not used the "tooltip-content" class on the div, and you can watch how clicking the button update the div, but the tooltip keeps the old text (The same happens if you use the class, just the div is not shown).
|
No clue? :( |
wrap your js in $(document).ready(function(){}); statement. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to modify dinamically the HTML which is shown in a tooltip but apparently this is not possible. Just removing the class "tooltip-content" from the div makes the JS works properly (but, of course, lose the tooltip effect).
For modifing the HTML I have tried with the functions html() and append() of JQuery.
The text was updated successfully, but these errors were encountered: