Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 1
How to use multiple in forms?
For accepting any alpha-numeric character for example Student ID...how should I use multiple?
8 Antworten
+ 2
<input type = "text" value="student_id"/>
alphanumaric can be text only..!!!
+ 2
Ipang here I want to state...for accepting a value which is alphanumeric. For example...
<input type="text"> is for accepting text and <input type="number"> is for accepting numbers. So in my text-book it is given that we can accept both text and numbers at same time using input restriction "multiple"...
Hence I demanded an example.
+ 2
Ipang thanks...I think my thought about multiple was wrong..thanks once again
+ 2
Yes. 'multiple' is an attribute can be used with email, file types and also select tag for accepting multiple values, camma separated.
Hope that helped.. You're welcome
+ 2
Welcome Wanda,
Remember those pages noted that only <email>, <file> and <select> elements supports the use of 'multiple' attribute. So I guess multiple student ID as input was not a viable option, except if you write some script to handle such inputs.
+ 1
I didn't understand the question. What did you mean "use multiple"? multiple of what?
+ 1
Wanda,
Now it's clear, Thanks for clarification.
These pages explains what 'multiple' attribute was for, where it is applicable, and some examples.
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/multiple
https://www.w3schools.com/tags/att_input_multiple.asp
+ 1
Jayakrishna🇮🇳 thanks