Рет қаралды 6,487
This video explains how you can use the matches( ) and closest( ) and querySelector( ) methods which belong to the DOM Element Object.
Code GIST: gist.github.co...
MDN closest reference: developer.mozi...
MDN matches reference: developer.mozi...