rob.m rob.m - 27 days ago 5
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() {...


UPDATE

I had a typo, accepting the answer.

Answer

You have a error with quotation mark. Try this.

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