I have multiple input fields. I want to get value and name of the input field by the selector getElementsByTagName while keyup. In jQuery we could do the same using this in jQuery. But I want in javascript.
Here the keyup is dynamic. And I need dynamically the value and name of input fields while on keyup in javascript.
In the below code I don't want to add a index zero, I need this to work dynamically and give the result.
const eventClickToDisconnect = document.getElementsByTagName('input');
eventClickToDisconnect[0].addEventListener('keyup',this.setInputValueWhileOnChange.bind(this));