Tell us what’s happening:
Hey everyone. Not sure what I did wrong here. I was instructed to replace targetId with entryDropdown.value. Instructions specified that # had to be put inside the string yet I am still not being prompted that the code is correct.
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 44