How can I validate a field only with upper case letters which are alphabetic. So, I want to match any word made of A-Z characters only.
var str = 'ALPHA'; if(/^[A-Z]*$/.test(str)) alert('Passed'); else alert('Failed');