I'm working on a personal project. I have attached a screenshot of my GUI.
Basically I'm trying to increase/decrease the value inside the H3 tag labeled "Set Temp"
When I click the "Up" Button I want it to increase the "temp" by 1deg and vice versa for "Down" Button.
I've tried using code from other posts: justGage - increase and decrease value with buttons
Increase counter value upon button click
But i'm a bit lost when using JS. Any help is appreciated!
I didn't include any script functions since the ones I tried didn't match what I was looking for(at least to my understanding).
My markup for the Screenshot is below:
<div class="col-md-6">
<div class="form-block center-block pl-10 light-gray-bg border-clear">
<h3 class="h3">Current Temp</h3>
<h3 class="h2" name="CurrentTemp" id='CurrentTemp' value='70'>70°</h3>
</div>
<div class="form-block center-block p-30 light-gray-bg border-clear">
<h3 class="h2">Set Temp</h3>
<h3><span id="amountSpan">70°</span></h3>
<button id="inc" type="Button" class="btn btn-danger"><i class="fa fa-angle-up"></i></button>
<button id="dec" type="Button" class="btn btn-primary"><i class="fa fa-angle-down"></i></button>
</div>
</div>