Turn list to a checkbox


I have a page that shows a list of names and how do I implement a button that, once clicked, turns this list into a list that I may select one or more of, and then a final button that has an action to assign to a user?