I Want to Grab the Event Values. What can I use instead of Event.srcElement?
//Take Values from our Form Input
function updateCountdown(e){
e.preventDefault()
countdownTitle = e.srcElement[0].value
countdownDate = e.srcElement[1].value
console.log(countdownTitle, countdownDate)
}
If you want to grab the value of event, you can do event.target.value or e.target.value in your case. According to MDN it is the best approach.
But if you want to grab the values from inputs on submitting the form you should use method elements : form.elements["name of an input"].value
I've created simple form to demonstrate this in action: CodeSandbox