Can't target "name" attribute in button like in a link

Thanks Max, but your example is not hiding prior shown elements which is key to the solution.

When an element is shown prior elements need to be hidden.

Will I find such a complete solution if I study the details here?