SyntaxFix
Write A Post
Hire A Developer
Questions
You can use,
if (!$("#car-2").is(':visible')) { alert('car 2 is hidden'); }