Claude Schneegans wrote:
> >>that's not to say there's not a simple way tho.
>
> The only other way I can think of is using regExp, but not really simpler.
Actually after thinking on this a bit it turned out to be fairly
simple. At least for my immediate need of 6 possible 1 character values.
var validList = /^[ABC124]{1}$/;
if (!validList.test(field.value.toUpperCase()))
{
showInvalidMsg(field);
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296865
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4