(Elementary user)
The following is an abridged input filter that removes any character that is not a-z which I believe is defined by the value 'lowercaseLetters'
To adapt this filter to make it numbers only, can anyone tell me what the value should be?
Best regards
------------------------------------
function only_a_to_z(theField, val, v, args)
{
// normal textfield. Do the filter.
s = stripCharsNotInBag(val, lowercaseLetters);
// if we have supplied a pointer to another field, we put the data there...
if (args && args.length==1) {
theField.form[args[0]].value = s;
} else {
theField.value = s;
}
return true;
The following is an abridged input filter that removes any character that is not a-z which I believe is defined by the value 'lowercaseLetters'
To adapt this filter to make it numbers only, can anyone tell me what the value should be?
Best regards
------------------------------------
function only_a_to_z(theField, val, v, args)
{
// normal textfield. Do the filter.
s = stripCharsNotInBag(val, lowercaseLetters);
// if we have supplied a pointer to another field, we put the data there...
if (args && args.length==1) {
theField.form[args[0]].value = s;
} else {
theField.value = s;
}
return true;