0
something about html form inputs
I have 2 question about it 1) what if ı want password to only be number and give it a limit (like 5 numbers) 2) what if I want dots in password to be * or # symbol. how can I make it happn https://code.sololearn.com/WinxIQ0ZnyKB/?ref=app
4 odpowiedzi
+ 2
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password
You can specify pattern and maxlength to restrict input
+ 1
For example this one allows only digits as password of length 5. Look at the pattern attribute.
<input type= "password" name="password" placeholder=Password method="get" pattern="[\d]{5}"/>
0
for number 1 you will need javascript to do that.
for number 2 you will need also js but not recomanded, insted use php or python in django.
0
Lisa i didnt get why did code used for