I\'m trying to do a Celsius/Fahrenheit conversion calculator, with a button for each conversion and the result being displayed in the appropriate textbox. I must be missing
You are querying the DOM with the document.getElementById() function, but both input
elements don't currently have an id
attribute only a name
attribute. So in your example, there are no elements that actually match the IDs you're passing to the function.
You should set the id
attributes of both elements like so: