SyntaxFix
Write A Post
Hire A Developer
Questions
How do I check if an element exists
if ($("#mydiv").length){ }
If it is 0, it will evaluate to false, anything more than that true.
0
false
true
There is no need for a greater than, less than comparison.