Hot to remove all number and all text from stringby using javascript replace javascript ?
https://jsfiddle.net/jgcsw41s/
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
var str = "123aBcD#$%";
var res = str.replace("1-9,a-z,A-Z", "");
alert(res);
}
</script>
When i tested my code it's not replace.
How can i do that ?