Answer the question
In order to leave comments, you need to log in
Is there an OR in javascript?
There are 11 text boxes on the site page.
You must fill one of them to submit the form using ajax.
I registered a check for filling one of the fields like this, but it did not work:
if( $("#pole1").val()!='' or $("#pole2").val()!='' or $("#pole3").val()!=''){
send form
}else{
error
}
Answer the question
In order to leave comments, you need to log in
OR is not present, but as well as in the majority of programming languages there is ||
$("#pole1").val() !== '' || $("#pole2").val() !== ''
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question