jQuery – Does an element exist? if ($(selector).length) { // Exists } Source: http://stackoverflow.com/a/587408 Related Ben2019-02-06T23:58:57-04:00August 6th, 2018|Tags: jQuery|