I am storing the result of some calculations in a HTML div element using the innerHTML attribute:
var result = document.getElementById('duration').innerHTML+
obj1+" "+obj+" "+
km.toFixed(1)+" Km "+Date
document.getElementById('duration').innerHTML = result
Now I want to store the div's content/data in a PHP variable.