import js.JQuery ;
new JQuery("#my-div").addClass(“brand-success”).html(“haxe is great!”);
So, in the index.html, I just created a div tag with id #my-div and used the above line of code in the Main class. The compilation is successful, but I get error in the browser console saying that js.JQuery is not a function.
What does that mean?
I read somewhere else that I need to create an Extern class as an interface? So, won’t above line of code alone will work?