-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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: