Starting Javascripts Using jQuery

You all know javascript only works on client side. Normally javascript used to animate or DOM manipulation. By the way, we will code javascript using jQuery library. For that reason, you must have to include jQuery library file before jQuery code. So, you have to download jQuery file from http://jquery.com/download/ . After downloaded file, import that file to your project folder. Now include that jQuery file at html file head portion, like as below.

Code for Example


<script type=”text/javascript” src=”[file directory from this html file]/jquery.js”></script>
<script type=”text/javascript”>
/** check jquery added and working well */
$(document).ready(function(){
alert(“working…”); /** if jQuery works well, a alert popup will show “working…” */
});
</script>

and now enjoy to jquery code in your project.

One Response to “Starting Javascripts Using jQuery”

​Leave a Comment

Comment authors age:




Angularjs Tutorial Step by Step in 30 minutes

How to Create Modal Box in Bootstrap