BONUS: Applied JavaScript vs. jQuery
Explore how to perform common front-end tasks using both Vanilla JavaScript and jQuery. This lesson helps you understand element selection, event handling, class manipulation, and dynamic content creation with practical examples and coding alternatives. Gain confidence writing and comparing solutions in both JavaScript and jQuery.
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 ...