Giter Site home page Giter Site logo

Comments (3)

chrisdavidmills avatar chrisdavidmills commented on May 23, 2024

Hi there,

This error means that the guessSubmit variable contains a value of null, rather than the reference to a submit button input it is supposed to contain. You can't attach an event listener to a value of null, so it throws this error.

So somewhere above this line, you might not be setting the guessSubmit variable's value properly. Do you have this line in the code:

var guessSubmit = document.querySelector('.guessSubmit');

?

And in the HTML, does your submit button input have as class of guessSubmit?

Have another look and see if you can figure this out. If you can't, I'm happy to have a look through your code to help find the error.

Best,

Chris

from learning-area.

ndotlara avatar ndotlara commented on May 23, 2024

Thank you, Chris. This resolved my issue. Closing.

from learning-area.

chrisdavidmills avatar chrisdavidmills commented on May 23, 2024

Cool, nice work!

I'm always happy to help.

from learning-area.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.