What You Should Already Know
Before you start studying jQuery, you should have a basic knowledge of:
- HTML
- CSS
- JAVASCRIPT
What is jQuery?
- jQuery is a small and lightweight JavaScript library.
- jQuery is cross-platform.
- jQuery means "write less do more".
The jQuery library contains the following features:
- HTML/DOM manipulation
- CSS manipulation
- HTML event methods
- Effects and animations
- AJAX
- Utilities
Why jQuery?
- There are lots of other JavaScript libraries out there, but jQuery is probably the most popular, and also the most extendable.
- Some big companies are using jquery like -
- Microsoft
- IBM
- Netflix
Add Jquery Library in your webpage
there is two type to add the library in your web page
- Download the jQuery library from jQuery.com
- Second Using CDN like google.
- Downloading Jquery:-you can download the jquery in jquery.com
- The jQuery library is a single JavaScript file, and you reference it with the HTML
<script> tag (notice that the <script> tag should be inside the <head> section):
Example - <head> <script src="jquery-3.5.1.min.js"></script> </head>
<script> tag (notice that the <script> tag should be inside the <head> section):- jQuery CDN-If you don't want to download and host jQuery yourself, you can include it from a CDN (Content Delivery Network).
- Google CDN-
<head><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js> </script>
</head>
</head>
Jquery Syntax-
- jQuery syntax is made by using HTML elements selector and perform some action on the elements are manipulation in Dot sign(.)..
- Basic syntax is: $(selector).action()
- A $ sign to define/access jQuery
- A (selector) to "query (or find)" HTML elements.
- A jQuery action() to be performed on the element(s).
Example-
$(document).ready(function() {
$(selector).action();
});NEXT-JQuery Selector

No comments:
Post a Comment