Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
If you’re familiar with writing JavaScript and CSS, then writing your first jQuery script will feel very familiar, yet maybe slightly odd. The jQuery framework is a JavaScript library, meaning that it’s built with JavaScript. The fundamentals are the same, as you’re essentially still writing JavaScript, it just so happens that you’ll be writing in a way that uses the jQuery framework. In other words, while there may be added enhancements to certain fundamentals, the core of JavaScript—variables, functions, conditional statements, and so on—has not changed. So, you’ll still be using the var keyword, if and switch statements, and functions, but you’ll surely notice a lot of additional enhancements and different ways of writing things, namely accessing HTML elements.