I have this validation on a ColdFusion form. If the user doesn't enter anything, the pop-up works. If the user enters one digit, the form gets processed. Is there a way for me to check for a minimum of 5 digits?
Any help would be appreciated
function _CF_checkzip(object_value, required)
//trim whitespace before we validate
object_value = object_value.replace(/^\s+/,'').replace(/\s+$/,'');