Push value from input field

Hello everyone, I need your help. I am currently trying to make a lead generator and one of my tasks in the project was to push the value entered into the input field into the console. Every time I refresh the console it shows me an error message that says "cannot read properties of null (reading “value”). Not sure where I have gone wrong. Here is a link to my project. Any advice would be greatly appreciated

Take a closer look at the id of the input field, and id, which is used in javascript to refer to that element.

Thank you so much, I couldn’t for the life of me figure it out :sweat_smile:

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