comma separator function

Jan 27 2019 10:22 PM
My code is allowing AlphaNUmeric and Dash/Minus(-), It need to accept Commas(,) also.
Can someOne please help me on this.
function AlphaNumericOnlyDash() {
if (!((event.keyCode >= 48 && event.keyCode <= 57) || event.keyCode == 45 || (event.keyCode >= 65 && event.keyCode <= 90) || (event.keyCode >= 97 && event.keyCode <= 122))) {
CancelEvent();
}
}

Answers (1)