$("#button").click(function(){
var aAjouter = $('input[name=checkListItem]').val();
});
});
This code is not Ok.The message is OOps try again.Don't know why.I'm on th french version of codeacademy.
I'm need some help please
It was not the problem. this ` is coming from the âcopy/pasteââŚ
Thank you for your help, but I have the same mistake againâŚ
(document).ready(function(){
("#button").click(function(){
var toAdd = $(âinput[name=checkListItem]â).val();
});
});
look at the Instructions carefully.You have to add âtoAddâ variable if you are seeing this error(i.e. Oops, try again. Did you create a variable called toAdd?).ok???
@designsolver01248
Any question?
No, for the french version, I have to add âaAjouterâ variable.The instructions are the same but the name of the variable is different.
I tried with 'toAdd" but the problem was the same.
I think that there is a problem with the french version of codeacademy, because my code seems good.
Thank you for your help, but my problem is here againâŚ
@designsolver01248,
Could you display the HTML-code you are using�?
Please re-edit your Post
- leave one blank-line above of your code
- select your code in the Post
- then =click= on the </>-symbol-of-this-editor
Your code will then be in a pre-code state
and you will be able to make/present the proper indentations.
or even better use
= http://discuss.codecademy.com/t/using-backticks-to-format-your-code/3697/2
[extraâs]
https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
<html>
<head>
<title>To Do</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<h2>To Do</h2>
<form name="checkListForm">
<input type="text" name="checkListItem"/>
</form>
<div id="button">Add!</div>
<br/>
<div class="list"></div>
</body>
</html>
this the code HTML Iâm using.
yes ,you are right for the french version, you have to add âaAjouterâ variable. That time i didnât see french version so i made a misteake.now dont worry .your code is here-
(document).ready(function(){
("#button").click(function(){
var aAjouter = $(âinput[name=elementCheckList]â).val();
});
});
just change from checkListItem to elementCheckList.This time i am sure
@designsolver01248
This time itâs OK.
I tried many things, like elementListe, listElement, but It was elementCheckList
Thank you very much.
Have a nice dayâŚ