JQUERY

JQUERY

jQuery is a fast and concise JavaScript library created by John Resig in 2006 with a nice motto − Write less, do more. jQuery is a powerful JavaScript API which makes it a lot easier to perform various standard JavaScript actions in your HTML page.

php training gurgaon

List of some core features supported by jQuery –

  • DOM manipulation
  • Event handling
  • AJAX Support
  • Animations
  • Lightweight
  • Cross Browser Support
  • Latest Technology
  • Smart widgets / Latest UI
  • jQuery Features

 

How to use?

There are two ways to use jQuery.

 

Local Installation − You can download jQuery library on your local machine directly.

CDN Based Version − You can include jQuery library into your HTML code directly from Content Delivery Network (CDN).

 

Local Installation

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 1

<html>

<head>

<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”></script>

<script>

$(document).ready(function()

{

$(“h1”).click(function()

{

$(this).hide();

});

$(“p”).click(function()

{

$(this).hide();

});

});

</script>

</head>

<body>

<p>Hi i m paragraph when you will click me, i will hide</p>

<h1>fkjgksfd gfh</h1>

<p>As i am also paragraph. i will also hide as this rule also apply on me </p>

</body>

Enjoy the tutorial? Please spread the word :)

Follow by Email
Facebook
Facebook
Google+2k
Google+
http://hirdeshbhardwaj.com/2017/09/01/jquery-3
YouTube41
YouTube