Sunday, May 21, 2017

jQuery

jQuery is a fast, small, and feature-rich JavaScript library.



The purpose of jQuery is to make it much easier to use JavaScript on your website.

It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.

The jQuery library contains the following features:
  • HTML/DOM manipulation
  • CSS manipulation
  • HTML event methods
  • Effects and animations
  • AJAXhttps://jquery.com/
  • Utilities

There are two ways to use jQuery.

      1.
Local Installation − You can download jQuery library on your local machine and include it in your HTML code.

Go to the https://jquery.com/download/ to download the latest version available


 2.
CDN Based Version − You can include jQuery library into your HTML code directly from Content Delivery Network (CDN).
 
You can include jQuery library into your HTML code directly from Content Delivery Network (CDN). Google and Microsoft provides content deliver for the latest version.

jQuery Selectors
 

  • All selectors in jQuery start with the dollar sign and parentheses: $().
  • jQuery selectors are used to "find" (or select) HTML elements based on their name, id, classes, types, attributes, values of attributes and much more.

Example Code For jQuery

<html>
   <head>
      <title>The jQuery Example</title>
      <script type="text/javascript"  src="/jquery/jquery-2.1.3.min.js"></script>
  
      <script type="text/javascript">
         $(document).ready(function(){
            document.write("Hello, World!");
         });
      </script>
  
   </head>
 
   <body>

      <h1>Hello</h1>

   </body>
</html>

No comments:

Post a Comment

My First Day with Uki DN Cohort 1

 "Hello WORLD!"