Possible Duplicate:
Is there an “exists” function for jQuery
Is there a better way to check if the element is already inserted on page? I'm currently doing this and is working fine, but doesn't seem for me to be the best/fast way
$(element).closest('body').length > 0
Thanks.
Edit:
I doesn't need to know if my element exists, I need to know if it's on page.