How to test if an Element Exists

10/02/2009 7 min

Listen "How to test if an Element Exists"

Episode Synopsis

A common question for beginners coming to jQuery: "Is there a function to return true or false if an element exists?" Not really, but there is a (very simple) way to find out.