I need to make an input already have the forward slashes by default / to type the date of birth in a form so that the field shows / /___ and when writing the day, month and year jump between them, I get to see it on a registration page but I don't remember and I would like to do it that way to save time when registering data and not using a date type input since it would imply moving in a number of selects instead asking for the date of birth and typing it is more practical and accessible.
I tried to do it with patter but I couldn't get it to show as I explained. Well, I hope you understand what I require and thank you in advance for the help and advice you can give me, family.
You can use an event in conjunction with a regular expression as follows.
Another option is to have 3 inputs separated by / (quite common) or use some date picker.
You could use regular expressions to separate
/
what you are writing, the result will have the date format: