<form oninput="totalWeight.value=parseInt(catAWeight.value)+parseInt(catBWeight.value)">0
<input type="range" id="catAWeight" value="50">100
+<input type="number" id="catBWeight" value="50">
=<output name="totalWeight" for="catAWeight catBWeight"></output>
</form>
input, output {
margin: 0px 20px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.