How to use multiple in forms? | Sololearn: Learn to code for FREE!
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?

26th Mar 2022, 11:01 AM
🙂😀😃
8 Antworten
+ 2
<input type = "text" value="student_id"/> alphanumaric can be text only..!!!
26th Mar 2022, 11:17 AM
Jayakrishna 🇮🇳
+ 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.
26th Mar 2022, 11:23 AM
🙂😀😃
+ 2
Ipang thanks...I think my thought about multiple was wrong..thanks once again
26th Mar 2022, 11:44 AM
🙂😀😃
+ 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
26th Mar 2022, 11:49 AM
Jayakrishna 🇮🇳
+ 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.
26th Mar 2022, 11:49 AM
Ipang
+ 1
I didn't understand the question. What did you mean "use multiple"? multiple of what?
26th Mar 2022, 11:16 AM
Ipang
+ 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
26th Mar 2022, 11:32 AM
Ipang
26th Mar 2022, 11:32 AM
🙂😀😃