[jQuery] check if an id exists - Google 网上论坛
From:
http://docs.jquery.com/Frequently_Asked_Questions# How_do_I_test_whether_an_ element_exists.3F
if ( $('#theId').length ) {
// exists
} else {
// doesn't exist
}
[jQuery] check if an id exists - Google 网上论坛 From: |