Home / Web Development / jQuery / jQuery-Basic

jQuery-Basic

JQuery is lightweight write less, do more open source Javascript Library, used for interaction between HTML and JavaScript. JQuery is not a language. But JavaScript is a Language. JQuery is built over JavaScript.The purpose of jQuery is to make it much easier to use JavaScript on your website.




The jQuery library contains the following features:

  • HTML/DOM manipulation
  • CSS manipulation
  • HTML event methods
  • Effects and animations



  • AJAX
  • Utilities

How to use jQuery?
There are two ways to use jQuery.

  • Local Installation − download jQuery library on your local machine and include it in your HTML code and run.
  • eg:

    <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(){
    alert(“Hello World!”);
    });
    </script>

    </head>

    <body>
    </body>
    </html>

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




  • eg:

    <html>
    <head>
    <title>The jQuery Example</title>
    <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js”>
    </script>

    <script type=”text/javascript”>
    $(document).ready(function(){
    document.write(“Hello, World!”);
    });
    </script>
    </head>

    <body>

    </body>
    </html>

Loading Facebook Comments ...
Social Media Auto Publish Powered By : XYZScripts.com