[ad_1]
A simple String.replace with regex /[a-z]/ig can do!
var str = "avc234jw6";
var no = parseInt(str.replace(/[a-z]/ig, ""));
console.log(no);
[ad_2]
solved How to remove the character form string using jQuery? [duplicate]
[ad_1]
A simple String.replace with regex /[a-z]/ig can do!
var str = "avc234jw6";
var no = parseInt(str.replace(/[a-z]/ig, ""));
console.log(no);
[ad_2]
solved How to remove the character form string using jQuery? [duplicate]