Jquery Introduction

JQuery is a lightweight, “write less, do more”, JavaScript library. The purpose of JQuery is to make it much easier to use JavaScript on your website. JQuery takes a lot of common tasks that require many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code.

JQuery can be used to develop Ajax based applications, make code simple, concise and reusable.It can handle events, perform animation and add ajax support in web applications.

JQuery helps to improve the performance of the application, develop most browser compatible web page, implement UI related critical functionality without writing hundreds of lines of codes.

Features

  • Event handling
  • Animations
  • Lightweight

How to use jQuery?

  • Go to the https://jquery.com/download/ to download the latest version available.
  • Now put downloaded jquery-2.1.3.min.js file in a directory of your website.

Example:

<html>
   <head>
      <title>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, WeAreCoder!");
         });
      </script>
   </head>
	
   <body>
      <h1>Hello WeAreCoder</h1>
   </body>
</html>

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *