how to check particular elment is present in list of elements in jquery code example
Example 1: jquery check if element exists
// Check if an element currently exists
if ($('#element').length) {
}
Example 2: jQuery exists function
if ($("#myElementID").length){
//I exist
}