Number with leading zeroes gets changed in JavaScript

后端 未结 4 1526
既然无缘
既然无缘 2020-12-06 21:57

I am calling a javascript function from php using a print statement to print out html code, and I am passing in an integer. However, the value when it is passed in php is no

4条回答
  •  天涯浪人
    2020-12-06 22:58

    You can just call with including '' quotes

    Like onchange="updateLineTotal{$id,'{$po101}')";

    Just include it in quotes so it will consider it as string not an integer

提交回复
热议问题