Skip to content

jQuery $.mobile library is undefined

I have linked jQuery and jQuery mobile to my code. I got this error in the console:

TypeError: $.mobile is undefined

I have rechecked the URL and all are correct, I have update the files(jQuery, jQuery mobile) and the issue is still exists. I have place the jquery.js before

This is my code:

    <script src="JS/jquery.js" type="text/javascript"></script>
    <script src="//"></script>
    <script src="JS/bootstrap.min.js" type="text/javascript"></script>
    <script src="JS/code.js" type="text/javascript"></script>   

and it’s on the end of the file. the content of code.js:



<script type="text/javascript" src=""> 
<script type="text/javascript" src=" 

try this by replacing your code

NOTE* put jquery mobile script at last after putting all jquery library scripts, im sure it will work

User contributions licensed under: CC BY-SA
7 People found this is helpful