I had a condition if the two textfield are the same it will proceed if not then the button is disable I know im doing this wrong but this is what i wanted to do please help
onSubmit() {
debugger
if (this.state.password == this.state.password2)
alert('same');
else
alert('error');
this.disable;
}
Aucun commentaire:
Enregistrer un commentaire