Form validation

Results 1 to 2 of 2

Thread: Form validation

  1. #1
    Join Date
    Dec 1969

    Default Form validation

    I want users only to be able to use letters or numbers in a text box. How can I do this? <BR><BR>Also I have seen textboxes that put the "-" between the numbers when you are entering your SSN#. Anyone know how to do this?<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969


    Go there and look at the JavaScript FAQ. Tons of stuff there (and lots of other sites) on JS validation.<BR><BR>As for the hyphen in SSN&#039;s. It&#039;s easy to reformat the SSN after the user moves off the text field. It&#039;s pretty tough to put the hyphen in on the fly. Personally, I&#039;d go for post processing unless this is truly important to you.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts