clicking of a button, so that a dynamic sub-menu list is retrieved
===

I am developing an enhancement to my existing tester. I have a menu , that in turn has submenu items( 5 of them, that keep dynamicaly changing).I can see these 5 menu items (as I have already worked on that part of the code).
I am developing on to clicking a button, so that this list of submenu items is retrieved. Im not sure how to link betwwen the clicking of the button so that the submenu items could be seen?
please help me..thanks