mirror of
https://github.com/atapas/html-tips-tricks.git
synced 2024-11-16 00:38:26 +01:00
Merge pull request #25 from ummeq/bugfix/12-output-tag
Fixed Bug#12 regarding output tag
This commit is contained in:
commit
f478ca2c9d
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
<img src="../home.svg" alt="home" />
|
||||
</a>
|
||||
<h2> Let's see the Output </h2>
|
||||
<form oninput="x.value=parseInt(a.value) * parseInt(b.value)">
|
||||
<form oninput="x.value= (a.value && b.value) ? parseInt(a.value) * parseInt(b.value) : 0">
|
||||
<input type="number" id="a" value="0">
|
||||
* <input type="number" id="b" value="0">
|
||||
= <output name="x" for="a b"></output>
|
||||
|
|
Loading…
Reference in a new issue