Merge pull request #25 from ummeq/bugfix/12-output-tag

Fixed Bug#12 regarding output tag
This commit is contained in:
Tapas Adhikary 2022-10-28 15:07:05 +05:30 committed by GitHub
commit f478ca2c9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>