Oh, very cool! I knew about .matches(), but I didn't know that we had .closest() as well. This is perfect for any kind of event-delegation. About time!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Oh, very cool! I knew about
.matches()
, but I didn't know that we had.closest()
as well. This is perfect for any kind of event-delegation. About time!