471,570 Members | 1,102 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,570 software developers and data experts.

TextBox validation problem....Please help

69
Hi all,

I am have no idea at all how to do this.
I want a textbox where the first character in the box is a 'M'.The user can see this but cannot change it. Now, i want to allow them to enter 5 more number charachers in the SAME textbox after the 'M' to make up a ID. The IDs must start with 'M' so i just want the users to enter the numbers and have the "M' hard coded into the textbox always.....
Is this possible?
Nov 4 '07 #1
1 1354
Markus
6,050 Expert 4TB
Ahhhh, interesting!

I don't know but my first thought would be to:

Expand|Select|Wrap|Line Numbers
  1. <form name="" action="">
  2.  <label for="id">Username:</label> m<input type="text" id="id" />
  3. </form>
  4.  
Leave the 'm' outside the input, sort of thing.

:)
Nov 4 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

12 posts views Thread by Robert | last post: by
7 posts views Thread by Joel Finkel | last post: by
2 posts views Thread by Pham Nguyen | last post: by
6 posts views Thread by JIM.H. | last post: by
reply views Thread by slekshmipriya | last post: by
2 posts views Thread by Durango2008 | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Vinnie | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.