).css("z-index", count); $(this).css("position", "relative"); count = count - 1; }); });