[wearable] Using jQuery in a widget app

[wearable] Using jQuery in a widget app

BY 23 Jul 2017 Web Application Development

Hi,

I’m just trying to use jQuery functions like this:

 

I get the error : ‘$’ is not defined.

If i use it inline, i won’t work either:

 

 

(yes i know i’m missing a dot at .addClass(), but it won’t work either. Even if i try using .hide() or something else.)

My folder structure looks like this:

 

 

 

How can i include jQuery? None widgets has a lib which they then include in the html file.

I can’t seem to include jQuery in html page for widgets.

Any help would be nice

 

 

 

Written by