I want to change the button content depending on the previous content click. For example, if its Add then it should change to Save, and if it is Save then it should change back to Add.
I know how to change the content of a button. but how can one read the content to make a change?