Stuck trying to change the id and text of a button.

Stuck trying to change the id and text of a button.

I am stuck trying to change the id and text in the header of a page.

The text currently says 'confirm' and the id=btnConfirm - when this is pressed I want to change the text of the button to say 'edit' and the id to change to btnEdit


Thanks in advance.