I'm building an app.net page using jQuery for DOM manipulation (JS Fiddle here). When I click a certain <td>
on the table it becomes target for future manipulation. I want to add code, so that a click anywhere outside the table will un-target that <td>
(meaning a click in the background should act as a cancel selection event).
The answers to this question did not help me, because:
A. I don't want to use stopPropagation()
because of this article plus I have many click event handlers in my code that I will have to stop from propagating).
B. I have other elements on the page (buttons, text-input fields) which should NOT act as a cancel selection event).