jquery check if an element is a certain element code example
Example: jquery check if element exists
// Check if an element currently exists
if ($('#element').length) {
}
// Check if an element currently exists
if ($('#element').length) {
}