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