Is there a way to access an element from within the mounted function in a VueJS instance?
I attempted to do so using the code below, but it returned an error stating that the element is undefined. However, upon checking the DOM, I can see that the element is present. Could this be due to the element not being rendered before the reference is made?
document.getElementsByName('transferDate_submit')[0].addEventListener("change",function(){});