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.
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments