I have seen the possibility to limit the way the text will show in a form. For instance, if it's a credit card, when the user writes, automatically a space is created between 4 numbers. How to do that?
(I am not talking about regex validation when the user click submit but before that, when the user writes the numbers in the input)
<form action='externs/select-insert.php' method='post'>
<input type='text' id='card' name='card' value='### ###'>
</form>