Nested Form with nested event

Ex: I have three tables: Institutions, Applications and Administrators.

I would like to have a form that I can do:
have check-boxes of all available Institutions. Once user check on any Institution item, then Check box of Application items that correspond to Insittutions (one to many relation) should appear and so user can check on any of them.

Finally, the list of Institutions, and the list of Applications that correspond to each institution that user have chosen should be retrieved for Administrator entity.

Of course, my Administrator entity has a list of Institutions, and list of Applications.

Please guide me a good way to reach it. thank in advance.