This is an equation to check whether 1 of the 3 elements has value. If yes, all elements must have value.
if( (a!='' || b!='' || c!='') && (a=='' || b=='' || c=='') ) alert('Please fill all elements');
Aucun commentaire:
Enregistrer un commentaire