Checking If An Element Exists In jQuery
Sunday, February 3, 2013 - 18:32
To verify that an element exists in the DOM you just need to use the .length property of a jQuery lookup. If the element is there then the number of elements found will be greater than 0.