Is there any way to globally monitor or listen to if a selection is made in jQuery and it returns no elements? E.g.:
You have a page with:
<div id=”some-id”></div>
And in a JavaScript someone tries to get the element but mistypes the id:
$(“#someid”)
Is there any way to globally handle when a jQuery selection returns no elements?