JQuery check element is exist

How can I check if some element is exist or not, using JQuery.Here describes check element by using JQuery and Java Script.If you already have basic knowledge of JQueryand Java Script this is simple.
Using JQuery

Using Java Script.