- ๐ Hi, Iโm @Sarathisarathi2
- ๐ Iโm interested in ...
- ๐ฑ Iโm currently learning ...
- ๐๏ธ Iโm looking to collaborate on ...
- ๐ซ How to reach me ...
<script>
const inputs = document.querySelectorAll("input");
inputs.forEach((i0, i) => {
i0.addEventListener("keyup", ({ target }) => {
const v = +target.value * +target.getAttribute("divisor");
inputs.forEach(i1 => {
i1.value = v / +i1.getAttribute("divisor");
});
});
if (i === 0) i0.focus();
});
</script>