+ 2
My code playground does not support JQuery why???
JQuery
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>
+ 3
Have you used this tag
<script src="https://code.jquery.com/jquery-3.1.1.js"></script>
+ 1
Yes i did
+ 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.
+ 1
It worked tnx
+ 1
👍👍
Can get cdn link from w3school
+ 1
Tnx a lot
0
Can you link your code here