+ 2

My code playground does not support JQuery why???

JQuery

9th Aug 2020, 8:07 AM
Jefferson John
Jefferson John - avatar
8 odpowiedzi
+ 3
put this code in your body tag Of new file.if it works ping me I will tell you your mistakes. <p>If you click on the "Hide" button, I will disappear.</p> <button id="hide">Hide</button> <button id="show">Show</button> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("#hide").click(function(){ $("p").hide(); }); $("#show").click(function(){ $("p").show(); }); }); </script>
9th Aug 2020, 8:48 AM
Divya Mohan
Divya Mohan - avatar
+ 3
Have you used this tag <script src="https://code.jquery.com/jquery-3.1.1.js"></script>
9th Aug 2020, 8:09 AM
v@msi😉
v@msi😉 - avatar
+ 1
Yes i did
9th Aug 2020, 8:17 AM
Jefferson John
Jefferson John - avatar
+ 1
See you can link jQuery in two ways. 1.diwnload it and link it using link tag. 2.cdn method. No need to download just add a link .but it works when you are online only and little bit slow. This is what I have suggested you is cdn method . Download method is used when you want to use it even you are offline.
9th Aug 2020, 9:00 AM
Divya Mohan
Divya Mohan - avatar
+ 1
It worked tnx
9th Aug 2020, 9:05 AM
Jefferson John
Jefferson John - avatar
+ 1
👍👍 Can get cdn link from w3school
9th Aug 2020, 9:07 AM
Divya Mohan
Divya Mohan - avatar
+ 1
Tnx a lot
10th Aug 2020, 9:19 AM
Jefferson John
Jefferson John - avatar
0
Can you link your code here
9th Aug 2020, 8:20 AM
v@msi😉
v@msi😉 - avatar