Here I was, all this time, thinking that JQuery was how people still did things.
Apparently Javascript has changed since I last looked, and things are simpler/more baked in.
Here are the new things:
Where JQuery let you do:
var foo = $('#foo_id');
You can now do:
var foo = document.querySelector('#foo_id');
https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector
JQuery had some nice interface for making AJAX calls.
Apparently now there's this new fetch
thing:
- https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
- https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
- https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Basic_concepts
- https://developer.mozilla.org/en-US/docs/Web/API/Request
https://developer.mozilla.org/en-US/docs/Web/API/Element/classList
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset
So cool! Welcome to 2016, you guys! Thanks to the GG Bois for learning me!
You may want to look at this