Modifier des éléments HTML 11/14


#1



https://www.codecademy.com/fr/courses/web-beginner-fr-FR-3zko8/2/2?curriculum_id=5355c479516bcbd91200000d


my code look correct but i have this message : Oups, merci de réessayer. On dirait que votre variable aAjouter n'a pas la bonne valeur. Jetez un œil à l'indice sur vous avez besoin d'aide !


Replace this line with your code. 
$(document).ready(function() {
$('#button').click(function() {
var aAjouter = $('input[name=checkListItem]').val();
});
});


#2

Hello @claudeldam,
your error-message is telling you, that you have the wrong index, even if it's correct.
(input[name=checkListItem])
Everything else is correct aswell.

Did you try refreshing the page? (CTRL + R or (CTRL +) F5))
Cause when I put your code in my editor, it works properly!


Hope I could help you :slight_smile:
If you got further questions, feel free to get in touch with me :smiley:
Make sure to mark my post as solution, so others which face the same
issue will be able to take it as a reference :wink:
Greez, 0xB4DC0DED


#3

Nothing have changed with the hard refresh (i had tried with ccleaner before)
Thanks for the tip (ctrl+f5) perhaps a bug in the french site, sadly there a lots of bugs in it :stuck_out_tongue:
My code should work :slight_smile: and work in the next exercice :smiley:


#4

I tried with Internet Explorer instead Chrome, and my code is valided.
Don't know why, but it work.


#5

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.