SyntaxFix
Write A Post
Hire A Developer
Questions
I use this:
if ($('.div1').size() || $('.div2').size()) { console.log('ok'); }