Answer the question
In order to leave comments, you need to log in
HTML form validation. How to check if one of the two required fields is filled?
HTML form validation. How to check if one of the two required fields is filled?
Answer the question
In order to leave comments, you need to log in
if(!document.getElementById('some-field').value && !document.getElementById('another-field').value){
alert('Вах!.. заполнить поля забыл...');
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question