{v. phr.}, {informal} To bring success in doing something; have a desired result. * /Jim was not passing in English, but he studied harder and that did the trick./ * /The car wheels slipped on the ice, so Tom put sand under them, which did the trick./ Compare: TURN THE TRICK.
DO THE TRICK
Meaning of DO THE TRICK in English
Dictionary of English idioms . Словарь английских идиом. 2012