Hi everyone,
i'm having a hard time achieving this:
i have a table inside a form, with input fields ( price, qty, desc, total ( to be updated ), this works as it should with the following javascript:
<script type="text/javascript"><!--
function updatesum() {
document.forms['hours'].elements['onktotal[]'].value = (document.forms['hours'].elements['onkqty[]'].value.replace(",", ".") -0) * (document.forms['hours'].elements['onkprice[]'].value.replace(",", ".") -0);
}
//-->
</script>
now the problem occurs when i put more rows there then the javascript function does not work anymore, my ultimate goal is to create a function to add tablerows with javascript, but i'm trying to create the update function with a static situation first.
any help is greatly appreciated