I have a value in Javascript as
var input = \"Rs. 6,67,000\"
How can I get only the numerical values ?
Result: 6
For this task the easiest way to do it will be to us regex :)
var input = "Rs. 6,67,000";
var res = input.replace(/\D/g,'');
console.log(res); // 667000
Here you can find more information about how to use regex:
https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions
I hope it helped :)
Regards