Consider a situation where you have an iFrame on a page. Suppose you have an element outside of the iFrame (in the parent document) that you wish to target with some jQuery from within the iFrame. This situation may sound odd, but it has come up multiple times.
The method by which I target elements in the parent document is quite straightforward:
This simply gets the parent document and uses find to get whatever page element you are after. Quite obvious when you see it, but it can be elusive in the moment.