HTML change for multiple class
See original GitHub issueI have an html tooltip
<div id="home-tooltip-templates" style="display: none;">
<img src="" alt="BBLand">
<span class="title"></span>
<span class="postex"></span>
</div>
and multi boxwr (.boxwr). I using jQuery to change html every hover. But it’s not working.
const tip = tippy('.boxwr', {
html: template,
arrow: true,
theme: 'light',
animation: 'fade',
wait(show, event) {
const popper = tip.getPopperElement(el);
// const refData = tip.getReferenceData(template);
// $("#home-tooltip-templates img").attr("src",event.currentTarget.dataset.src);
// $("#home-tooltip-templates .title").text(event.currentTarget.dataset.title);
// $("#home-tooltip-templates .postex").text(event.currentTarget.dataset.description);
template.innerHTML = '<img src="${event.currentTarget.dataset.src}" alt="BBLand">
<span class="title">${event.currentTarget.dataset.title}</span>
<span class="postex">${event.currentTarget.dataset.description}</span>';
tip.update(popper);
// show();
});
Please help
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to assign multiple classes to an HTML container? [closed]
To assign multiple classes to an html element, include both class names within the quotations of the class attribute and have them separated ......
Read more >How to add multiple classes to HTML elements
Any HTML element can have as many different classes as needed to style the element using CSS effectively. To assign multiple classes to...
Read more >HTML Global class Attribute - W3Schools
Attribute Values ; classname, Specifies one or more class names for an element. To specify multiple classes, separate the class names with a...
Read more >CSS FAQ - Learn web development | MDN
HTML elements can be assigned multiple classes by listing the classes in the class attribute, with a blank space to separate them.
Read more >How to apply styles to multiple classes at once - GeeksforGeeks
Note: This approach is mostly used to apply different CSS styles when the same class name is available in the different elements. Example...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

https://codepen.io/anon/pen/EXwORG
Wow, awesome. Thank you so so much