Check if element exists in jQuery
Elementary thing.
if ($('#module2').length > 0 ) {
// Stuff here if it exists
} else {
// Stuff here if it does not
}
Elementary thing.
if ($('#module2').length > 0 ) {
// Stuff here if it exists
} else {
// Stuff here if it does not
}
Club-Mate, the beverage → club-mate.fi