How can I remove AutoNumeric formatting before submitting form?

后端 未结 11 2984
栀梦
栀梦 2021-02-19 05:26

I\'m using the jQuery plugin AutoNumeric but when I submit a form, I can\'t remove the formatting on the fields before POST.

I tried to use $(\'input\

11条回答
  •  不要未来只要你来
    2021-02-19 05:59

    You can always use php str_replace function

    str_repalce(',','',$stringYouWantToFix);
    

    it will remove all commas. you can cast the value to integer if necessary.

提交回复
热议问题