Results 1 to 3 of 3

Thread: Form Input Restriction

  1. #1
    Join Date
    Jun 2006

    Form Input Restriction

    Is there a way to restrict the characters that can be entered into a text field in a form using css. For example, only using numbers and slashes

  2. #2
    Join Date
    Feb 2003
    Michigan, USA
    Nope. That's best left to Javascript.

    HTML = data
    CSS = look
    JavaScript = additional functionality

    You want additional functionality. Now mind you, users can disable javascript, so you want something server side to strip out the invalid characters anyhow.

  3. #3
    Join Date
    Jun 2006
    K. I was hoping for a universal fix for this site i am fixing, looks like i'll have to create a js file. thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles