2
The error appeared after I tried to add the . click(Function())
As you can see in the image above, the result is not as expected, which 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 already checked, and the CDN is correct. Thanks in advance!
You’re not going the right way, buddy!
– LeAndrade
The error only happened after I added the part of . click(Function)(), because before it was working correctly, with fadein and color working
– Vinicius Borges Lima
Well I honestly don’t understand what you want to do. But in the code you are full of
});
leftover!– LeAndrade
It’s just a test buddy, I’m just testing the use of Jquery, that’s why I put so much stuff, I’m going to edit and show the full code
– Vinicius Borges Lima