Remove non-numeric characters except points, commas and '$'?

后端 未结 2 1309
伪装坚强ぢ
伪装坚强ぢ 2020-12-30 20:37

I need a function to remove all characters except numbers + characters: \'$\', \'.\' and \',\'.

How can I do this?

2条回答
  •  佛祖请我去吃肉
    2020-12-30 20:47

    If you do not want to allow someone to type such values in a textbox then jQuery Numeric is a nice plugin that does exactly what you want,

提交回复
热议问题