This is my div
Then I have a Show button that will show the div when you click:
You can use,
if (!$("#car-2").is(':visible')) { alert('car 2 is hidden'); }