0
In HTMLif you want to restrict to your form that block should include only numbers how do you do it
3 Antworten
+ 2
If you're asking for a way to allow user to enter only number to your text field, you can simply use type attribute in input tag.
Set value of type attribute to number to enable number pad on mobile devices.
//For example
<form>
<label>Your name:</label>
<input id="user" name="username" type="number" />
</form>
0
thank you
0
hy but it still allowing letters.