[jquery] Check div is hidden using jquery

You can use,

if (!$("#car-2").is(':visible'))
{
      alert('car 2 is hidden');
}