Periksa apakah string adalah alfanumerik
if (string.match(/^[0-9A-Za-z]+$/) === null) {
//is not alphanumeric
}else{
//it is alphanumeric
}
Grieving Gharial
if (string.match(/^[0-9A-Za-z]+$/) === null) {
//is not alphanumeric
}else{
//it is alphanumeric
}