Introduction To JQuery


JQuery Basics

Before we learn JQuery you should knowledge abount below script language.

  • HTML
  • CSS
  • JAVASCRIPT

What Is JQuery?

  • jQuery is a fast, small JavaScript library.
  • jQuery is a lightweight, "write less, do more", JavaScript library.
  • It's hard to write code for simple task in JavaScript but jQuery provide that task in single line.

➤ The jQuery library contains the following features:

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

Implementation Of JQuery In Html Script?

➤ JQuery(Google CDN)

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

➤ JQuery(JQuery CDN)

<script src="https://code.jquery.com/jquery-3.5.1.js"></script>

<html>
 <head>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
 </head>
  
 <body>
  <script type="text/javascript">
  /*Docuemnt Ready Method No - 1*/
  $(function(){
   alert("Code4js Alert");
  });

  /*Docuemnt Ready Method No - 2*/
  $(document).ready(function(){
    alert("Code4js Alert");
  })
  </script>
 </body>
  
</html>

Comments