Using jQuery

Using jQuery

BY 30 Aug 2016 Web Application Development

Hello friends, i’m trying to use jquery.js library . But i’m not able to use $ sign .There is always a warning ,  ‘$’ is not defined.

I have loaded the jquery library in index.html before the main.js file  at the end of the body tag as  below.

<body>
    <div id=”main” class=”page”>
        <div class=”contents”>
            <span id=”content-text”>Basic</span>
        </div>
    </div>
   <script src=”lib/jquery.js”></script>
    <script src=”js/main.js”></script>
</body>

 

 

 

Written by