This tutorial assumes that you have some basic knowledge of the following.
jQuery tag line is "write less, do more".
In the following example we are selecting the same element using jQuery.
Code written using jQuery runs exactly the same in most of the modern browsers as jQuery takes care of most of the cross-browsers issues.
You can download jQuery from their website.
Let's say we have the following project structure.
Inside the project folder we also have an index.html file.
To include the jQuery file inside the index.html file we are using the script tag.
The index.html file contains the following code.
more HTML will go here...
<!-- script -->
Copyright © 2014 - 2017 DYclassroom. All rights reserved.
rendered in 0.0418 sec