SPrelewicz
Programmer
Is there a way, when another button is clicked, to automatically change the text (value parameter?) of a different submit button?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head>
<script>
function changeSomeOne(){
document.myForm.button2.value = "Something Else";
return true;
}//end function
</script>
</head>
<body>
<form name="myForm">
<input type="button" name="button1" value="Hello" onClick="changeSomeOne()"><input type="button" name="button2" value="Goodbye"></form>
</body>
</html>