I may have made the 6/12 part bug


#1

Hi,

I've (stupidly) tried to add a class in html in my lesson 6/12, since then it keeps telling me that there's an error ($e(...).a.cacher is not a function) , even if I know my code is right.

Is there a way to get thru this in order to end the whole part 2 ?

(PS: I think I wrote a class in french, so maybe that's the reason why it disliked it :slightly_smiling: )

Thanks by advance !


#2

can you add your whole code?


#3

$(document).ready(function() {
$('button').click(function() {
$('.vanish').fadeOut('slow');
});
});

I'm pretty sure it's correct :slightly_smiling:


#4

which class has the problem? button?

if it is button, you need to add a period in the beginning.

just like this $('.button')....


#5

No the button doesn't have any class. It's just a regular html button .

I shouldn't have tried to write something which wasn't part of the exercise...


#6

Hi I have the exact same problem, did you solve this issue, can you help me as well? I wrote the same code:
$(document).ready(function() {
$('button').click(function() {
$('.vanish').fadeOut('slow');
});
});

I got the same error message.

Thanks


#7

Hi all,
I had the same bug :confused: , in French courses too.
Here's my code and I have the same error message than you !

$(document).ready(function() {
_ $('button').click(function() {_
_ $('.vanish').fadeOut('slow',0);_
_ });_
});

_

"Oups, merci de réessayer. $e('.disparaitre').a.cacher is not a function. (In '$e('.disparaitre').a.cacher', '$e('.disparaitre').a.cacher' is undefined)"

But, tadaaa, I found this post on the Forum, with a code which is working :slight_smile:
Hope it helps :slight_smile:
_