Check if Element is Exists or Not With jQuery
Do something for an Exists element found:
jQuery
if ($('#element').length > 0){ //do something for exists element }
Do something for an Exists element found:
if ($('#element').length > 0){ //do something for exists element }