The error appeared after I tried to add the .click (function ())
As you can see in the image above, the result is not expected, it would be that h1 would be orange, with a fadeIn, and an onclick function.
JQuery:
$(document).ready(function(){
$('h1')
.css("color","#f66")
.hide()
.delay('1000')
.fadeIn("slow")
.text('Teste')
.click(function()){
$('body').css("background","#C30")
$('h1').css("color","#fff");
});
});
HTML:
<body>
<h1>Teste aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</h1>
<a href="#">1</a>
<a href="#" class="link 2">1</a>
<a href="#" id="link3">1</a>
I've already checked, and the CDN is correct. Thank you in advance!