Answers for "select a tag and class javascript"

3

javascript get element by class

var elements = document.querySelector(".class");
Posted by: Guest on November-30-2020
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 "select a tag and class javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language