As the first tutorial in the jQuery tutorial series on techbriefers, we will get acquainted with jQuery. I will discuss what jQuery is and why you should use jQuery in website creation.
Why should I use jQuery?
getElementById() function :
var x = document.getElementById("mydivid");
With jQuery, the writing is much shorter:
var x = $("#mydivid");
Another feature of jQuery (and perhaps the most important reason), jQuery provides a variety of interesting animation effects. Some of them are very easy to use and only require 1 or 2 lines of code. Especially for creating this animation effect, jQuery also has a jQuery UI that focuses on animation and user interaction.
jQuery also has various plugins or additional code for advanced functions, such as creating slideshow effects, image carousels, to jQuery mobile. Effects like this are based on the basic jQuery code.
In this tutorial we’ve covered what jQuery is and why we use it. Next, I will immediately guide you to start using jQuery: How to Input jQuery files into HTML .