I want to change the Text/Label when I click on the CustomAction button of Ribbon.
It should be change from my Javascript function because I want to check the condition in that.
My CustomAction button is created for DocumentLibrary.
For Ex:, When text is "Like" and I click on button, then it should become "UnLike" and vice-versa.
How to change Text/Label of this ?