Published
- 1 min read
js get numbers only
The solution for this is noted below
js get numbers only
Solution
var str = "Rs. 6,67,000";
var res = str.replace(/\D/g, "");
alert(res); // 667000
Try other methods by searching on the site. That is if this doesn’t work