mirror of
https://github.com/atapas/html-tips-tricks.git
synced 2024-09-30 05:51:30 +02:00
Merge af4a478be3
into 5dc82b852f
This commit is contained in:
commit
b168e62653
@ -16,7 +16,7 @@
|
|||||||
<img src="../home.svg" alt="home" />
|
<img src="../home.svg" alt="home" />
|
||||||
</a>
|
</a>
|
||||||
<h2> Let's see the Output </h2>
|
<h2> Let's see the Output </h2>
|
||||||
<form oninput="x.value=parseInt(a.value) * parseInt(b.value)">
|
<form oninput="var n = parseInt(a.value) * parseInt(b.value); x.value= isNaN(n) ? 0 : n">
|
||||||
<input type="number" id="a" value="0">
|
<input type="number" id="a" value="0">
|
||||||
* <input type="number" id="b" value="0">
|
* <input type="number" id="b" value="0">
|
||||||
= <output name="x" for="a b"></output>
|
= <output name="x" for="a b"></output>
|
||||||
|
Loading…
Reference in New Issue
Block a user