1 function check(name) {2 var button_thanks = document.getElementById('button-thanks');3 if (name.length >= 2) {4 button_thanks.removeAttribute('disabled');5 } else {6 button_thanks.setAttribute('disabled', true);7 }8 }
Enlace
El enlace para compartir es: