rob.m rob.m - 4 months ago 28
Javascript Question

How to hover all elements but avoid some?

I need to be able to hover elements but not all. In this case I tried all but not the table.

$(".modal-content *:not("table")").on("mouseenter", function() {...


I had a typo, accepting the answer.


You have a error with quotation mark. Try this.

$(".modal-content *:not('table')").on("mouseenter", function() {...