Sunday, July 10, 2016

Convert number to String in Javascript

   $('#OTPTP').change(function () {
                var compid = $('#txtcompid').val();
                var type = $('#OTPTP').val();
                var Otpid = compid.toString() + "301010100001";     //This one.......
                if(type=="OTCHARGE")
                {
                    $('#OTPName').val("INCOME FROM INDOOR");
                    $('#OTPID').val(Otpid);
                }
                else
                {
                    $('#OTPName').val("");
                    $('#OTPID').val("");
                }
           


            });

Visit my youtube channel. Hopefully you will like this.


No comments:

Post a Comment