Learn Form Validation by Building a Calorie Counter - Step 88

Tell us what’s happening:

What am I missing? Please advise:

function clearForm() {
let inputContainers = element.querySelectorAll(“input-container”);
}

Your code so far

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

/* file: styles.css */

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

function clearForm() {
let inputContainers = element.querySelectorAll("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/123.0.0.0 Safari/537.36

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 88

Hi @ljoyclifford

  1. classes start with a dot
  2. replace element with document

Happy coding

Thank you for the help!

1 Like

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