How to start writing jQuery code ?


The jQuery as we know is a javascript library, now to use this we need to include this library in our javascript or .js file. 
 
Recall that the javascript code is written in the <script> tags and we are including the .js file of jQuery to use the jQuery functions. 
 
 
<script type='text/javascript' src='jquery.js'> </script> 
 
<!--The above line includes the jQuery file which is downloaded from jQuery.com --> 
 
<!--Now write the script tags where you write your own jQuery code --> 
 
<script type='text/javascript'> 
//write your JS or jQuery code here 
</script> 
 
 
So now you know that you need to include the jQuery file first and then need to go with jQuery code.

Leave a Reply

Your email address will not be published.