Let's say I have 3 textboxes in cshtml. What I am trying to do in Javascript is the following:
Check if ANY OF those 3 values and ONLY THEM is not null.
The only way I can think of is doing it manually:
if ((val1 & !val2 & !val3) || (!val1 & val2 & !val3) || (!val1 & !val2 & val3))
It is okay if it is a small number of textboxes, but if such number grows to 10+, it might become a hassle.
Is there any efficient way to implement such logic in Javascript regardless of how many textboxes we are dealing with?