• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

VALIDATING NUMBERS

Validating numbers is not much different than validating strings, which we’ve already discussed.

In this exercise, we’ll create one last validation function to validate the data entered into the zip text field. As a valid U.S. Zip code, the data entered must meet two requirements:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint