Show text / hide text

I have created 2 buttons called show text and hide text. When I click on show text I want a dynamic text box to be displayed and to disappear when I click on hide text.
I have all the separate parts working like the button and dynamic text box but just dont know how to get them to work together???