Can someone please help me identify the issue in my code? I've included both HTML and JavaScript below. The code runs without any errors in Visual Studio Code, but when I try to use it on an online site, I get the following error message: "Uncaught TypeError: ele.addEventListener is not a function".
**<input type="text" name="" id="mon" class="key" placeholder="Monday">
<input type="text" name="" id="tues" class="key" placeholder="Tuesday">
<script>
var ele = document.querySelectorAll("#mon, #tues");
ele.addEventListener('keypress', demo);
function demo(){
alert();
}
</script>**