I am working on a notifications system. Please refer the fiddle here.
I tried to close the element using
this.remove();
It didnt work, no error either. I also tried:
this.parent.remove();
This gave an error:
Uncaught TypeError: Cannot call method 'remove' of undefined
How do I get the close button working properly?