Why didn't javascript work when adding a form on wordpress?

  • 0
    Good day.
    Here is a link to the page http://research.h1n.ru/contacts/
    I added the html part to the page.php file, the script in \ js, the styles in \ css. Style files and javascript I wrote in functions.php
    The console says this: myform.js? Ver = 5.5.1: 59 Uncaught TypeError: Cannot read property 'addEventListener' of null
    at myform.js? ver = 5.5.1: 59
    where does the version number come from?
    And most importantly: why does the script not expand the form? And what does the console say?
    In codepen, these 3 files work.
    JavaScript Emerson Nunez, Sep 14, 2019

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!