Hi,
First let me state that I'm a novice at JavaScript. (I'm trying to break my VBScript habit.)
What I'm trying to create is an input box that simulates the Masked Edit box in VB. It will be for entering dates.
What I'm thinking is the initial value of the input field would be " / / ". That is position 1 and 2 would be blanks (spaces), position 3 would be "/", etc.
When a number is put in position 2 the cursor would automatically move to position 4, keeping the "/" in position 3. (The same would happen for positions 5,6,7.)
Also, if a number is placed in position 1 only, then the TAB is hit, the cursor should move to position 4.
I've tried various permutations of code snippets that I've found but I'm not having much luck.
Any help will be appreciated.
Thanks,
Al.