I have been working on a website that is designed to convert numbers for you. Most of the code is complete, but I have encountered an error that I am currently unable to resolve. When I try to run the code, I see content on the page but when I click the button, the conversion does not occur as expected.
<div id = "conversion">
function feet() {
var userinches = document.getElementById('userinches').value;
doOuput('The answer is', userinches / 0.0833, ' ft');
}
function doOuput(val, unit) {
//console.log('Convert To ' + unit);
document.getElementById('results').innerHTML = val + unit;
}
</div><!-- End of conversion div section -->