this is my html and javascript coding. how to do contenteditable div onkeyup calculation. i tried it but i doesn't work...
<td><div class="inputclass" id="quantity1" contenteditable> </div></td>
<td><div class="inputclass" id="unitprice1" onkeyup="maths();" contenteditable> </div></td>
<td><div class="inputclass" id="total1" contenteditable> </div></td>
function maths()
{
var qt = document.getElementById("quantity1").value;
var up = document.getElementById("unitprice1").value;
qtup = parseFloat((qt * up)) || 0;
document.getElementById("total1").value = qtup;
}