javascript only number code example
Example: js get numbers only
var str = "Rs. 6,67,000";
var res = str.replace(/\D/g, "");
alert(res); // 667000
var str = "Rs. 6,67,000";
var res = str.replace(/\D/g, "");
alert(res); // 667000