This is my div
Then I have a Show button that will show the div when you click:
Try
if($('#car2').is(':hidden')) { alert('car 2 is hidden'); }