Home > jQuery > Check if an element exists using jQuery

if ($("#element").length > 0) {
    ...
}



Flag Counter