Learn Form Validation by Building a Calorie Counter - Step 46

Tell us what’s happening: Hi I’m at lost here. I did the task but I am told to do it again !

You should add an input element on a new line. Any insight please ?

Your code so far

<input type="text" id="${entryDropdown.value}-${entryNumber}-name" placeholder="Name" />

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3 Safari/605.1.15

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 46

Hello!

I suggest trying to enter it within the same back tick and semi-colon, but on the line below.

Example:

  <label for="${entryDropdown.value}-${entryNumber}-name">Entry ${entryNumber} Name</label>`;

This is how the step starts.

Suggested for success: 
  <label for="${entryDropdown.value}-${entryNumber}-name">Entry ${entryNumber} Name</label>
`;

Attempt entering your code where the back tick and ; are on the next line. These should finish your code for you.

Happy coding!

Thanks for your suggestion I already tried that possibility too but to no avail. Nevertheless, I did again as you advised me but nothing (( I already have the back tick (it’s ok) but when I add the semi-colon , I still have the same message((

Hello!

Could you please post the updated code?

I tested what I suggested before making the suggestion to you.

So, I am thinking there may be some misunderstanding of what I suggested.

Place the cursor between the closing label > and the `; and tap the enter key on your keyboard.

Then, enter your code before the `;

It should work, as it does here.

Example:

<label>text</label>`;  STARTING CODE

Please note the following change

<label>text</label>
<input>`;  ENDING CODE

If this does not work, I suggest try submitting from a different browser.

Please note, there is not an ` after the ; only before it.

Happy coding!

Hi, I followed your second suggestion and it worked ! Thanks again for your help and your patience. You’re really great to explain !

1 Like

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