I'm stuck on this project and not sure what's going wrong. I need to return the temp conversion of a users input on click. Any help would be appreciated.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Temperature Converter</title>
<script type = "text/javascript">
<!--
function calculateCelsius()
{
var form = document.getElementById("formTemp");
var value = parseInt(form.fahrenheitInput.value);
form.celsiusInput.value = celsius(value);
var C = 0;
C = 9.0 / 5.0 * celsiusInput + 32 +"F";
return C;
}
function calculateFahrenheit()
{
var form = document.getElementById("formTemp");
var value = parseInt(form.celsiusInput.value);
form.fahrenheitInput.value = fahrenheit(value);
var F = 0;
F = (5.0 / 9.0 * (fahrenheitInput- 32)+"C");
return F;
}
</script>
</head>
<body>
<form ID="formTemp">
<p>Fahrenheit</p>
<input name = "fahrenheitInput" type = "text" />
<input type = "button" value = "Convert to Celsius" onclick = "calculateCelsius()" />
<p>Celsius</p>
<input name = "celsiusInput" type = "text" />
<input type = "button" value = "Convert to Fahrenheit" onclick = "calculateFahrenheit()" />
</form>
</body>
</html>