How to achieve such a blank birth date input box like Apple's official website?

as shown in the following figure, when the user does not enter, the input box can use the keyboard to move the number left and right, and then automatically skip the year, month, day and other keywords to enter into the next input area, and if the user"s input value is not a legal date input, there will be no change in the input box.
Picture description

Nov.22,2021

regularly judge whether the value conforms to the standard in the input event
use input.selectionStart , input.selectionEnd Control the cursor
to achieve this effect

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3fdb1-2c4ce.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3fdb1-2c4ce.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?