codetoad.com
  ASP Shopping Cart, Forum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Auto fill the semicolon?  cwilkey at 22:48 on Thursday, January 20, 2005
 

I'm looking for something to "auto fill" the semicolon(:) when someone types a time in a form field. hh:mm... So basicaly if a person types in one or two digits it will automatically put the : after the digit.

  Re: Auto fill the semicolon?  tgreer at 04:04 on Friday, January 21, 2005
 

That's a colon, the semicolon is ";". I would suggest using a regular expression.

Try this one, I haven't tested it.

(([0-1][0-9])|([2][0-3])):([0-5][0-9]):([0-5][0-9])


  Re: Auto fill the semicolon?  cwilkey at 13:45 on Friday, January 21, 2005
 

Opps! Sorry for the typo.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  matrix addition
•  Re: Storing data from HTML to Excel or TXT
•  Re: function within loop problem
•  Re: Ô‡´ò¥¯¥é¥Ö¤Ã� ¥Æ©`¥é©`¥á¥¤¥É£ò£±£±¥¢¥¤¥¢¥ó ¤Î£··¬ ¤Ç¤¹
•  Re: Replace
•  Re: タイトリスト AP2アイアン 712ã�®æƒ…å �
•  Re: SMS from Perl using HTTP request
•  Re: Charl Schwartzel
•  Re: Adhyayan - Annual Student Conference and Online Coding Festival


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2013