How to create a toggle button?

I have a field with some value in it. And I have a button. If I click the button the field must be updated by adding +5 to the original value, and when I click on the button again, the field should have the original value. How am I supposed to do that?