Tell us what’s happening:
Auto-testing says my code is failing in three places (below), but as far as I can tell it is working. Any insights appreciated
- 9. validateForm()[“product-code”] true when #product-code contains valid value, false otherwise.
-
- A change event triggered on #product-code, sets border color to green if contains a valid value, red otherwise.
-
- isValid function should take validateForm() as its argument and return true when all the form fields have been filled correctly
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Challenge Information:
Build a Customer Complaint Form - Build a Customer Complaint Form
https://www.freecodecamp.org/learn/full-stack-developer/lab-customer-complaint-form/build-a-customer-complaint-form