Using HTML5 forms with oninput inside a table -
can explain why can not use oninput inside table , how can work?
for example works:
<form onsubmit="return false" oninput="o.value = parseint(a.value) + parseint(b.value)"> <input name="a" type="number" step="any"> + <input name="b" type="number" step="any"> = <output name="o"></output> </form>
and not:
<table> <form onsubmit="return false" oninput="o.value = parseint(a.value) + parseint(b.value)"> <input name="a" type="number" step="any"> + <input name="b" type="number" step="any"> = <output name="o"></output> </form> </table>
<form onsubmit="return false" oninput="o.value = parseint(a.value) + parseint(b.value)"> <table> <input name="a" type="number" step="any"> + <input name="b" type="number" step="any"> = <output name="o"></output> </table> </form>
Comments
Post a Comment