I have a text field that needs to remain only text or decimal. Here is the code that I\'m currently using to replace everything except numbers and a decimal point. Issue is,
Use this:
document.getElementById(target).value = newVal.replace(/[^0-9.]/g, "");