Remove Commas with Jquery

前端 未结 6 2074
北荒
北荒 2021-02-12 22:02

I am in need of some code that removes commas from a string. I currently have a variety of numbers in the number_format() for PHP. I use Jquery to post certain things to a updat

6条回答
  •  旧巷少年郎
    2021-02-12 23:01

    use replace function of javascript for removing , in a string

    var result = jQuery('.money').html().replace(',', '');
    alert(result);
    

提交回复
热议问题