Converting inches to cm and vice versa
How this script worksWhen we enter any number at inches textbox ,we used onblur and onkeyup events to run the functions written to convert inches to cm
Similarly when we enter any data at centimetre textbox, it fires the function written to convert CM to Inches
Inside the functions we used simple mathematical conversion formulas to arrive at the result and display the same using getElementById()
This article is written by plus2net.com team.