I'm trying to copy the output from a javascript routine into a form. The js looks like this:
Is there a method that can be used to add this to a read only part of a form, so that journey details don't have to be input twice. I'm using innerHTML as the values are changed after the time of input. EG: a postcode is being expanded into a full street address.
Regards,
BobSM:HELP
HTML Code:
document.getElementById('results').innerHTML = '<strong>Address 1: </strong>' + location1.address + '<br /><strong>Address 2: </strong>' + location2.address + '<br /><strong>Distance: </strong>' + miledistance + ' miles (or ' + kmdistance + ' kilometers)' + '<br/><strong>Price £:</strong>' + price;
intermeadiate = document.getElementById(location1.address);
Regards,
BobSM:HELP