how to replace a character in the textbox, via the cursor position

Asked

Viewed 20 times

1

I have a textbox with the following value "00:00".

I want that when the user type a number, the 0 will be exchanged for that value that the user typed.

for example: if my cursor is in the second 0 from left to right and I type 2, it will look like this: "02:00";

How do I do it?

  • Matheus, post your current code, have you tried to do anything? If yes, post for us, so we can better help you.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.