Learn Form Validation by Building a Calorie Counter - Step 46

Tell us what’s happening:

The auto coder keeps telling me the input element should have a type attribute set to text, it does but the auto coder is not accepting it.

Your code so far


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.

 function addEntry() {
  const targetInputContainer = document.querySelector(`#${entryDropdown.value} .input-container`);
  const entryNumber = targetInputContainer.querySelectorAll('input[type="text"]').length;
   const HTMLString = `
  <label for="${entryDropdown.value}-${entryNumber}-name" >Entry ${entryNumber} Name</label>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 46

Hello try putting the text attribute and input tag on same line

1 Like

I had to put the entire input tag on one line. Thanks for the assist

1 Like

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