1: 2: 3:
var str = event.target.value + ""; // this will force the value to be a string str = str.replace(/[\. ,\- ;:]/g, ""); event.value = str;