Monday, 8 February 2021

JQuery

 JQuery(write less,do more)




  • This is not a language 
  • It's javascript library
  • Easy to learn
  • Jquery makes for easier to use javascript on our web
  • Open source

JQuery is not a only library for javascript But JQuery is probably most popular and extendable

JQuery works mostly All browers



                        JQuery library has some features
  1. HTML/DOM manipulation
  2. CSS manipulation
  3. HTML event methods
  4. Effects and animations
  5. AJAX
  6. Utilities
JQuery Syntax

  • Basic syntax is:-  $(selector).action()
  •  $ sign to define/access jQuery
  • (selector) to "query (or find)" HTML elements
  • A jQuery action() to be performed on the elements(s)

Two ways to insert the jquery

Download the jQuery library from jQuery.com

1.There are two versions of jQuery available for downloading:
    • Production version - this is for your live website because it has been minified and compressed
    • Development version - this is for testing and development (uncompressed and readable code)

2.Include jQuery from a CDN, like Google

   <head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>






No comments:

Post a Comment