This snippet is more than 5 years old and may no longer be best practise, test before use.

jQuery test if element exists


This is a small plugin for jQuery to test if an element exists in the DOM. 

Code: