change text on button click java code example Example: change button text by id click java <input type="button" value="Button Text" id="myButton1"></input>