JavaScript has very nice syntax for fallbacks and defaults, as long as unsuccessful calls return a falsy value:
var element = findElement() || findSomeOtherElement() || makeALastAttempt();
jQuery selectors are, however, truthy even when they are empty.
Is there an elegant way if saying “I want the element at this selector, and if it does not exist, then the element at that selector”?
Why not using: