Windows store app - jQuery error

julian

New Member
I'm trying to import jQuery into blank javascript app, but keep getting same error: \[code\]JavaScript runtime error: 'jQuery' is undefined\[/code\]. I don know the reason for this.My whole procedure:[*]Create new Blank app project[*]Add existing item jquery-1.8.2-win8-1.0 in js folder[*]Drag and drop added item into default.html head[*]Add some jquery code in default.jsand now, i'm getting this error: \[code\]JavaScript runtime error: '$' is undefined\[/code\].But if I delete added jQuery code(didn't notice before) it throw's me another error:\[code\]JavaScript critical error at line 4, column 1 in ms-appx://8cce31f0-7793-41f7-875e-c41dd9ade2c7/js/jquery-1.8.2-win8-1.0.js\[/code\].I'm trying to get jquery to work for last several hours, but without success.HTML code:\[code\]<!DOCTYPE html><html><head> <meta charset="utf-8" /> <title>jquery</title> <!-- WinJS references --> <link href="http://stackoverflow.com//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" /> <script src="http://stackoverflow.com//Microsoft.WinJS.1.0/js/base.js"></script> <script src="http://stackoverflow.com//Microsoft.WinJS.1.0/js/ui.js"></script> <!-- jquery references --> <link href="http://stackoverflow.com/css/default.css" rel="stylesheet" /> <script src="http://stackoverflow.com/js/default.js"></script> <script src="http://stackoverflow.com/questions/15874200/js/jquery-1.8.2-win8-1.0.js"></script></head><body> <p>Content goes here</p></body></html>\[/code\]jQuery code:\[code\]$("*").on("click", function () { });\[/code\]Error's:
PduCQ.png
HCuPk.png
Video:Error - jQuery
 
Top