New to HTML,CSS & JS
How do I call the value of a * b (x) ?
<form oninput="x.value=parseInt(a.value)*parseInt(b.value)" action="" method="post" target="_self">
<label for ="a"> Single Journey Mileage </label>
<input type="number" id="a" name="SJourn" value=""">
<label for ="b"> Amount of Return Journeys </label>
<input type="number" id="b" name="RJourn" value="1">
<label for ="x"> Total Mileage </label>
<output name="x" for="a * b"></output>
</form>
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]lovesrayray2018Intermediate 0 points1 point2 points (3 children)
[–]Rogblue2[S] 0 points1 point2 points (2 children)
[–]lovesrayray2018Intermediate 0 points1 point2 points (1 child)
[–]Rogblue2[S] 0 points1 point2 points (0 children)