Horje

How to add An <output> element located outside a form (but still a part of the form)

Output Example.

index.html
Example: HTML
 <form action="/action_page.php" id="numform"
oninput="x.value=parseInt(a.value)+parseInt(b.value)">0
<input type="range" id="a" name="a" value="50">100
+<input type="number" id="b" name="b" value="50">
<br><br>
<input type="submit">
</form>

<output form="numform" name="x" for="a b"></output> 

Output should be:

How to add An <output> element located outside a form (but still a part of the form)




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin