add method

A cross-browser method to get the related element