JQuery
Last updated
Last updated
jQuery is an open source JavaScript library used to simplify interaction with HTML/CSS on web pages. jQuery makes programming easier, by providing simple functions and methods to manipulate DOM (Document Object Model) , AJAX (Asynchronous JavaScript and XML) manipulation .
jQuery works with the motto Write less – Do more (write less, do more), helping programmers save time and effort in website design. Therefore, they are widely used in projects that use HTML, CSS, and JavaScript.
jQuery is currently the only library that can meet the needs of both designers and programmers.
Simple and easy to use : jQuery is a JavaScript library that is easy to learn and easy to use. It provides programmers with a number of simple methods to select elements and change their contents and properties.
Compatible with multiple browsers : jQuery optimizes all popular browsers today, including Internet Explorer.
Reduce development time and effort : jQuery provides many predefined functions to perform common tasks in JavaScript, making programming faster.
Large support community : jQuery has a large community with thousands of plugins and support documents, helping programmers find and use available solutions to reduce development time and effort.
Optimal performance : jQuery is designed to optimize performance, making web applications run faster and smoother.
In there:
$(selector) is a method that selects HTML elements based on the conditions specified in "selector". The selector can be an HTML tag name, CSS class, CSS ID, or other attribute of the element.
.action() is a method that performs an action on selected HTML elements. You can add content, change content, add or remove CSS properties,...
To install jQuery, you need:
Visit the jQuery website here
Download the latest version of jQuery. At this point, there will be two versions for you to choose from: compressed or uncompressed version. The compressed version will download faster, while the uncompressed version will be easier to read and debug.
Additionally, you can use a CDN (Content Delivery Network) link to include jQuery in your HTML file without downloading it.
Once you have jQuery loaded, create a new folder in your project folder and name it "js".
Move the downloaded jQuery file into the "js" folder.