I understand in jQuery (or JavaScript for that matter) if you want to link conditions together you can say:
if (A && B) { do something }
But how do I implement an OR uch as:
if (A OR B) { do something }
I understand in jQuery (or JavaScript for that matter) if you want to link conditions together you can say:
if (A && B) { do something }
But how do I implement an OR uch as:
if (A OR B) { do something }
Worth noting that || will also return true if BOTH A and B are true.
In javascript, if you're looking for A or B but not both, you'll need to do something similar to:
if( (A && !B) || (B && !A) ) { ... }