Hi all,
I have a requirement where user enters time in the format HH:MM in a text Box. I have a validator written and if user enters anything other than this format I throw a validation edit. Everything looks good until here.
Now, User dont want to enter the colon “:”, and he wants to tab between HH and MM. Stated another way, when user types HH cursor should go to MM and the colon should be in fixed/frozen position.
I first thought of having a two textBoxes so user can enter the HH and MM in different textboxes and use javaScript to concatenate it and send it to back end.
Second, I thought may be I will use javaScript and on keyDown or Key up change event call a function when does this functionality.
I definitely don’t want to use first approach because I am using this time textbox in a dataTable and I don’t to have an two columns for each value.
Any suggestions please?