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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -