I have a value in Javascript as
var input = \"Rs. 6,67,000\"
How can I get only the numerical values ?
Result: 6
6
You are really close. Change your replace to use the g flag, which will replace all.
g
str.replace("Rs. ", "").replace(/,/g,"");