change button label when clicked on thAT BUTTON

I WANT TO CHANGE THE BUTTON LABEL WHEN BUTTON IS CLICKED

You can use setValue() method to set input value:

$$(“button1”).attachEvent(“onItemClick”,function(){
this.setValue(“clicked”)
})