How to use JQuery in the Cordova project? [closed]

0

I started an open source hybrid project in HTML, CSS and JavaScript using Cordova. I added JQuery, but I can not use its resources. Is there any mistake on my part?
The code can be viewed here . Home When executing the project, linha 17 , for example, does not do what it should (add the text within the div of linha 26 ).

    
asked by anonymous 01.06.2015 / 19:51

1 answer

1

You need to call the code inside a $(document).ready() or equivalent:

<script>
  $(function(){
     var curso = controller.getNomeCurso();
     $("#curso").text(curso);
  });
</script>
    
01.06.2015 / 20:07