DEV Community

Discussion on: How I stopped using jQuery and learned to love the API

Collapse
 
katlum3 profile image
Katlum

Love this post! Just calling out that:

let button = document.querySelector('button[type=submit']);

Has a little mistake. The "]" is outside the string.

let button = document.querySelector('button[type=submit]');

Should fix it :3

Collapse
 
funkybob profile image
Curtis Maloney

Thanks!

It's a typo I make all too often :)