I need this button to change from "$5 USD" to "$10 USD" through the means of activating a function from a different button. I have updated the question to include more html and css information since uploading it. Here is the button whose text needs to be changed, and the button that activates said change:
function increase() {
document.getElementById("money").value = "$10 USD";
}
.fader1{
-webkit-animation: fadein 3s;
}
.dog{
-webkit-animation: fadein 8s;
width:50%;
height:50%;
}
.fader2{
-webkit-animation: fadein 8s;
}
@keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
h1{
font-size:320%;
}
h2{
font-size:200%;
}
div{
text-align:center;
}
button,
#money{
width:20%;
height:150px;
font-size:120%;
}
<body>
<div>
<h1 class="fader1">Increase payment?</h1>
<img class="dog" src="https://i.imgur.com/BAz7AGU.jpg">
<div class="fader2">
<input id="money" type="button" value="$5 USD" />
<button onclick="increase()">Increase</button>
</div>
</div>
</body>
I have updated this question as changing innerHTML to value did not change the outcome, so I hoped more context would help.