How to code using jQuery? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to code using jQuery?

should I download a library? or use a special tag embedded in html for I can code using jQuery? because I have included src="..code.jquery...etc" but still does not work. (I have saved the file in .js extention)

11th Jul 2018, 8:44 AM
Mahdoudou
Mahdoudou - avatar
3 Answers
+ 5
Hello, Mahdoudou ! To use "jQuery" You need to connect this library externally <script src="https://code.jquery.com/jquery-3.1.1.js" defer></script> The defer attribute defers the execution of the script until the entire page is fully loaded. A suitable lesson has also been found for you. https://www.sololearn.com/learn/jQuery/2785/?ref=app
11th Jul 2018, 9:11 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 4
Can you show the code please? Or if the code is not on SoloLearn make sure that the link is correctly embedded into the script tag and your js is loaded before you're using jQuery, you can do it by putting the js into a onload = function (){...} function
11th Jul 2018, 8:54 AM
Michael55555
Michael55555 - avatar
+ 1
How did you attempt to use jquery?
11th Jul 2018, 8:48 AM
Dlite
Dlite - avatar