I added a event listener to a button, which would show the css of the #popUpForm, however on the console it logs nothing.
markup:
<input id = "addItem" type = button value = "+">
<div id = "popUpForm">
/* lot of divs*/
</div>
script:
const addBtn = document.querySelector('#addItem')
addBtn.addEventListener('click', function(){
console.log(document.querySelector('#popUpForm').style.display)
})
css:
#popUpForm{
width: 350px;
height: 500px;
display:none; <-- looking for this
}
I'm using webpack, is it possible, that somehow it messes up my code? Any help appreciated!