jquery.mobile-1.3.2.min.js
,
jquery-ui.js(1.10.4)
,jquery-1.9.1.js
not working on Android emulator using Phonegap.
Its showing error as "Uncaught TypeError: Property '$' of object [object Object] is not a function"
jquery.mobile-1.3.2.min.js
,
jquery-ui.js(1.10.4)
,jquery-1.9.1.js
not working on Android emulator using Phonegap.
Its showing error as "Uncaught TypeError: Property '$' of object [object Object] is not a function"
You need to include jQuery core library first before jQuery UI
and jQuery Mobile
, correct order should be:
<script src="jquery-1.9.1.js"></script>
<script src="jquery-ui.js"></script>
<script src="jquery.mobile-1.3.2.min.js"></script>
<script src="scripts.js"></script>
Also make sure that all the files are loaded properly with correct path as well as your custom jQuery code is running after you've included all of the relevant scripts. In above example, you can put your code inside scripts.js
file.