SyntaxFix
Write A Post
Hire A Developer
Questions
The best way in Javascript:
if (document.getElementsByClassName("search-box").length > 0) { // do something }