queryselector change alternative

Solutions on MaxInterview for queryselector change alternative by the best coders in the world

showing results for - "queryselector change alternative"
Antonella
28 Oct 2020
1var nome_cognome = document.querySelectorAll('.modal.fade input').forEach((input) => {
2	if ( input.classList.contains('.nome-cognome') ) {
3		input.addEventListener('keypress', () => {
4		    console.log( input.value );
5		});
6	}
7});