I've decided to use a textbox for getting the users date of birth, I'm trying to make this textbox so it restricts the users input into DD/MM/YYYY, What i'm trying to get is to that the slash(/) is fixed within the textbox. The user won't want to have the type the "/" so I'm trying to get it fixed in the textbox
This is what I'm trying to achieve
|____/____/___|
my code so far is just a basic textbox but here it is anyway
<label for="title">Date of Birth</label>
<input type="text" name="dateofbirth" id="dateofbirth">
</div>