0

Is it possible to check the status of pointer events within a class. I want to know if the pointer-events within a class is hidden or visible. I tried :

var a =  $(".overlay").pointerEvents();

but it seems it is not working.

Thanks

Ahmed
  • 1,229
  • 2
  • 20
  • 45

1 Answers1

3

To access the value of a css property for a DOM element, you need to use the css method:

var a =  $(".overlay").css('pointer-events');
Axnyff
  • 9,213
  • 4
  • 33
  • 37