AsierUP AsierUP - 3 months ago 22
HTML Question

jQuery not working on Phonegap

I have been coding with jQuery, JavaScript, Ajax and PHP, and when I want to create my app using Phonegap de jQuery o CSS scripts are not working. Some idea?

My code :




<link rel="stylesheet" href="../css/template01.css" />
<link rel="stylesheet" href="../css/own.css" />
<link rel="stylesheet" href="../css/jquery.mobile.icons.min.css" />
<link rel="stylesheet" href="../jqm/jquery.mobile.structure-1.4.5.min.css" />

<script src="../jqm/jquery-2.2.4.min.js"></script>
<script src="../js/register.js"></script>
<script src="../js/volcap.js"></script>
<script src="../js/volser.js"></script>
<script src="../js/verser.js"></script>




Thanks for your help!

Answer

Problem with jQuery version.Use only following CDN :

  <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
 <script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<link href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" rel="stylesheet"/>