How to obtain the name of a button dynamically?

Please see my toggle button :