Answer to Question #47635 in AJAX | JavaScript | HTML | PHP for john

Question #47635
I am quite lost on this one: <!DOCTYPE html> <html> <head> <title>Temperature Converter</title> <script type="text/javascript" src="Week7.js"></script> </head> <body> <p>Enter a Temperature to Convert in the field below and select the starting scale.</p> <input type="text" name="txtTemp" id="txtTemp" placeholder="Enter a Temperature" /> <br /> <br /> <input type="radio" id="radFahrenheit" name="radTemp" checked/>Fahrenheit to Celcius <br/> <br/> <input type="radio" id="radCelcius" name="radTemp"/>Celcius to Fahrenheit <br/> <br/> <br/> <br/> <button onclick="ConvertTemp();">Convert</button> <br/> <br/> <div id="divResults"></div> </body> </html> and what I've gotten so far: function ConvertTemp(){ var radF = document.getElementById('radFahrenheit'); var radC = document.getElementById('radCelcius'); if(radF.checked){ FahrenheitToCelcius(); }else if(radC.checked){ CelciustoFahrenheit(); } } Any tips? thanks in advance.
Expert's answer

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS
paypal