Learn Form Validation by Building a Calorie Counter - Step 41

Tell us what’s happening:

i dont understand what i need to change i have tried to change it a lot but i keep getting this error
“You should pass targetId to your querySelector() method.”

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

function addEntry() {
  const targetId = '#' + entryDropdown.value;
const targetInputContainer = document.querySelector(`#${entryDropdown.value} .input-container`);
}

// User Editable Region

Your browser information:

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

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 41

so, if you find your quyerySelector method

you may notice that targetId is not in the argument, you need to change that

also notice the part of the isntructions that say “Use concatenation to separate targetId and ‘.input-container’ with a space, and pass that string to querySelector().”

so i need to but targetId instead of entryDropdown.value?

try, and if you need more help show what you tried

thank you i solved it now