Functiondojox.validate.us.isState

dojo.require("dojox.validate.us");
defined in dojox/validate/us.js

Validates US state and territory abbreviations.

Usage

function (/*String*/ value, /*Object?*/ flags) (view source)
parametertypedescription
valueStringA two character string
flagsObjectOptional. allowMilitary Allow military 'states', e.g. Armed Forces Europe (AE). Default is true.