Daniel N
2011-06-13 00:47:09 UTC
Here's the code:
function compute(){
var input = document.getElementById("input");
var output = document.getElementById("output");
output.innerHTML = input.innerHTML;
}
So let's say I have 3+3 in the input div.. And I want 6 to pop out in the output div. How do I change the function so that 3+3, the string, is computed into 6?