0

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(){

})
Toniq
  • 4,492
  • 12
  • 50
  • 109

0 Answers0