A slide assembly includes an outer slide, a blocking member mounted on the outer slide, an inner slide slidably attached to the outer slide, a sliding block slidably mounted on the inner slide, and a long bar slidably attached to an inner side of the inner slide. A groove is defined in the blocking member. The sliding block is inserted in the groove to fix the inner slide on the outer slide. A slanted protrusion extends from the long bar. When the long bar is pulled towards a first direction, the slanted protrusion pushes the sliding block. The sliding block moves towards a second direction substantially perpendicular to the first direction to disengage the inner slide from the outer slide.