Horje

How to add Perform a calculation and show the result in an <output> element

Output Example.
index.html
Example: HTML
 <form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0
  <input type="range" id="a" value="50">100
  +<input type="number" id="b" value="50">
  =<output name="x" for="a b"></output>
</form> 

Output should be:

How to add Perform a calculation and show the result in an <output> element




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