Hi i've made a form on a page. I want to be able to getelementsbyclass select the submit button via javascript and add for eg: console.log('hello'). I've added the JS file in a script tag to the HTML head, and inside it im trying to find the specific class of the button in question. However it keeps returning null and I'm unable to get the element and run a function on it.
Is there any way to do this?