Tuesday, August 17, 2021

JavaScript Round off and other

 

//JavaScript Round off and other

var tot_amt = document.getElementById("ContentPlaceHolder1_txt_w_total_tax");

        var net_amt = document.getElementById("ContentPlaceHolder1_txtBAmt");

        var dis_w_per = document.getElementById("ContentPlaceHolder1_txt_W_Dis_Per");

        var dis_w = document.getElementById("ContentPlaceHolder1_txt_W_Dis");

        dis_w_per.addEventListener("keyup", () => {

            //alert("keyup");

            dis_w.value = (tot_amt.value * dis_w_per.value / 100.0);

            var net_amt_ = tot_amt.value - dis_w.value

            net_amt.value = net_amt_.toFixed(2);

        })

No comments:

Post a Comment

Convert 1.25x speed spent hours convert into normal (1x) speed spent hours

If I run a video with 1.25x or 125% speed till 1 hour 26 minuts, then normal hours will be ?   1 hours 26 minuts convert into hours Total 60...