Languages

Menu
Sites
Language
how to use jquery in js file

 i need use jquery in .js file,   not html file

thanks

View Selected Answer

Responses

4 Replies
Marco Buettner

What?

Mark as answer
AVSukhov

Hello,

Import jquery library to your index.html

create separate js file

import this js file in index.html below jquery library

after this you can use jquery object in your js file. =))) this is in short

 

 

Seoghyun Kang

Hello,

 

Firstly, you need to download the jquery library.

Please access the "http://jquery.com/" and  add the jquery library to project.

Then you need to add the following code at the index.html.

<script src="jquery.js"></script>
 
If the following code is worked well, you can use the jQuery library.
$( document ).ready(function() {
    alert("jQuery");
});

 

Thanks

Alex Dem

Hi,
You could create any TizenWeb project based on Tizen Web UI Framework in SDK, jquery will be included there.
To use jquery in javascript file jquery lib should be included before javascript file
<script src="./lib/jquery.js"></script>
<script src="./js/main.js"></script>

Alexey.