allow only alphabets and numbers in textbox using javascript code example
Example: allow only numerics and few alphabets in input type js
function allowAlphaNumericSpace(thisInput) {
thisInput.value = thisInput.value.split(/[^AN0-9/]/).join('');
}