Welcome to tutorial number 1 of the Easy jQuery series part of EasyProgramming.net!
In this tutorial, we look at how selectors in jQuery work and practice its syntax. jQuery follows the same format as CSS selectors so it should be easy. Get a very quick intro into selectors and syntax here.
document.getElementById("id"). jQuery makes it a little easier and all you need to do to select the same ID is do
$("#id"). See how much shorter it is? The pound symbol comes in because it follows CSS selectors as well, making things much easier!
Here's a quick table to get you used to the different types of HTML elements that you can grab and apply a multitude of jQuery methods.
I hope you've enjoyed this tutorial! If you have any questions or concerns or comments, please scroll down to the comments section and let your mind speak! Hope you enjoy the tutorial series.
To fork the fiddle and follow along: https://jsfiddle.net/easyjs/mwohakqr/
Remember to checkout the Resources section below for associated downloadable content, JSFiddle links, and other resources. Watch the video and follow along!