BONUS: Applied JavaScript vs. jQuery
Explore how to perform common front-end tasks using both Vanilla JavaScript and jQuery, including element selection, event management, styling, DOM traversal, and dynamic element creation. Learn practical differences through examples and exercises.
We'll cover the following...
We will be going over various examples, and use cases that follow and provide the Vanilla JavaScript way of handling those use cases along with their jQuery alternatives.
Most of the examples use the .box class selector to demonstrate these various use cases. We encourage you to write out your proposed way of handling the use cases that follow in jQuery as an alternative to the JavaScript codes provided. Solutions are also provided should you get stuck.
...
...
Selecting elements
The Vanilla JavaScript way
The jQuery way ...