distinguish between an element and a jQuery selection