Tell us what’s happening:
My code does not pass but I don’t know what I’m doing wrong:
function clearForm() {
const inputContainers = document.querySelectorALL(‘.input-container’);
}
The error message reads:
You should use the “querySelectorAll” method to get all of the elements with the class “input-container”.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
function clearForm() {
const inputContainers = document.querySelectorALL('.input-container');
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Challenge Information:
Learn Form Validation by Building a Calorie Counter - Step 90