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