0

Div enable and disabled

I have made div disabled by click on div with pointer-event: none; But when I am taking it back to normal by click on button it's not coming to initial position. Please help?

30th Jul 2019, 6:11 AM
Sumit Keshri
1 Respuesta
+ 14
Is your button inside the disabled div? If it is, then it won't work. Place it outside. Another solution is to use removeEventListener instead of the CSS property.
5th Aug 2019, 5:16 AM
Igor Makarsky
Igor Makarsky - avatar