[Solved] My javascript codes won’t work?


I changed your code in “LengthConvertercmToinch()” observe here just added one variable

  function LengthConvertercmToinch()
    {
    var inch2Ref,cmtoInchResultRef;
    var inchTwo,centimetresTwo,inchTwo1;
    inch2Ref=document.getElementById("cmToInchValue");
    cmtoInchResultRef=document.getElementById("cmToInchRe");
    inchTwo=Number(inch2Ref.value);
    centimetresTwo=Number(cmtoInchResultRef.value)
    inchTwo1=inchTwo/2.54
    cmtoInchResultRef.innerText=inchTwo1;
    } 

I think now your problem has resolved

Let me know if your problem is solved

5

solved My javascript codes won’t work?