JQuery Syntax

JQuery is library of JavaScript and it more easy to use

The purpose of jquery team is write less do more

Before write the code of jquey you need to write jquery syntax

JQuery Syntax

<!------ If you write jquery in index.html file ----------->


$(document).ready(function(){ /* your code */ });


Note : Jquery code start  by $ sign 


<DOCTYPE html>


<title> Jquery </title>



<p id="demo"> This is my first jquery code </p>



var text  = $("#demo").html();






Learn more in next chapter