Learn Form Validation by Building a Calorie Counter - Step 45

Tell us what’s happening:

I didn’t get it like how can we select option and input in same query selector ,I was doing the same thing in vs code but doesn’t work ?

Your code so far

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

/* file: styles.css */

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

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

// 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/133.0.0.0 Safari/537.36 Edg/133.0.0.0

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 45

you are not asked to do that, but in case you needed to select both with the same querySelector or querySelectorAll then you would use a selector list

in this step you need to add an argument to querySelectorAll, and you are told exactly what to use