Questions tagged [exists]

Exists is a keyword or function in many languages, especially in SQL.

Exists is a keyword or function in many languages, especially in SQL.

Alternatively, one may be referring to some thing's existence, which is a meta-tag usage and is discouraged because the tag doesn't add any functionality. (I.e. you or future questioners are unlikely to search for "exists" when meaning existence of a file or such.)

1778 questions
638
votes
27 answers

How can I check if an element exists in the visible DOM?

How do you test an element for existence without the use of the getElementById method? I have set up a live demo for reference. I will also print the code on here as well: