Answers for "queryselector change alternative"

0

queryselector change alternative

var nome_cognome = document.querySelectorAll('.modal.fade input').forEach((input) => {
	if ( input.classList.contains('.nome-cognome') ) {
		input.addEventListener('keypress', () => {
		    console.log( input.value );
		});
	}
});
Posted by: Guest on April-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language