I am trying to replicate this code with javascript:
$(document).on("mouseenter", "[data-tooltip]", function(e){
})
I tried this but its not working:
document.querySelectorAll('[data-tooltip]').addEventListener("mouseenter", function(){
})
I am trying to replicate this code with javascript:
$(document).on("mouseenter", "[data-tooltip]", function(e){
})
I tried this but its not working:
document.querySelectorAll('[data-tooltip]').addEventListener("mouseenter", function(){
})