JavaScript DOM Tutorial - Element.matches()

preview_player
Показать описание
You can use the matches() method within the JavaScript Document Object Model (DOM) to check whether or not an element "matches" a query selector.

You may or may not find this useful within your own personal projects but I think it has its place when trying to interface with a third party library.

In this video I show you a nice and quick example of how to use this method.

Support me on Patreon:

For your reference, check this out:

Follow me on Twitter @dcode!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

Thank you mate! It'll always amaze me how useful is the basic tutorial (vanilla js) can be no matter how long the time has pass on. Thank you!

nadhiffuadi
Автор

Thanks a lot dear.It's really very helpful tutorial

mdminhaj
Автор

the obvious question... why not just use === ? ** help

ousmand