$ in JavaScript
How do I use the $ in JavaScript. Everytime I try it says I have and error. Ideas?
\n\nor you can also download it as a file and then link it to your document.","upvoteCount":7},{"@type":"Answer","text":"Usually you would just include the jQuery(library) script above the JS script(in html file) but as SoloLearn includes the JS automatically before you can include anything else what I did was (in JS)\r\nwindow.onload = function () {\r\n //the JQuery code here\r\n}\r\nthen in the header tag of the html window i put\r\n\r\nwhich includes the jQuery library before the JS file does anything.\r\nI'm not sure if there's a better way of doing it other than not using SoloLearn.","upvoteCount":4},{"@type":"Answer","text":"Do you mean for jQuery?","upvoteCount":2},{"@type":"Answer","text":"Well yes but people use it in JavaScript","upvoteCount":1}]} }
How do I use the $ in JavaScript. Everytime I try it says I have and error. Ideas?