0
Why the paragraph is not hiding?
<p>I am a paragraph </p> $("p").click(function(){$("this").hide("slow");});
3 Respuestas
+ 2
try this code:
$("p").click(function(){$(this).hide("slow");});
don't use "this", but this without quotation mark
+ 2
$(document).ready(function(){
$("p").click(function(){
$(this).hide("slow");
});
});
I think on playground it does not work independent you have to use .ready method
+ 1
Did you add this line in your head tag
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>