Temperature Conversion
Celsius
Fahrenheit
to Fahrenheit
inp_f.value=(value*1.8+32)
to Celsius
inp_c.value=(value-32)*(5/9)
Ref:
JS Tutorial