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; }

Member Avatar
Member Avatar
+0 forum 3

How can you use the "contenteditable" attribute to edit your site or lists but not have the general public do the same. Maybe just in a admin panel view? and Is this just easier for the developer to change content on the fly? I just don't see how it can be used yet.

Member Avatar
Member Avatar
+0 forum 9

The End.