Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Do the empty quotes mean that multiple values can be entered for the value?

HTML
<input name="favoriteCities[]" value="" />


What I have tried:

Tried google searching about quotes but I couldn't find much info about them.
Posted
Updated 8-Sep-22 18:57pm

The value="" simply specifies an initial value (in this case, nothing) to be displayed in the text box (which is the default type of input element). It has nothing to do with what may or may not be accepted in the input element.
 
Share this answer
 
v2
To add to what Peter has said ... An input control has only one value, it cannot ever accept "multiple values" as it only has a single string property which allows your code to access what the user has entered.
 
Share this answer
 
What about reading the documentation and experimenting ( put a value between quotes and see what happen )?
Quote:
What do the empty quotations mean for value?

It is 'value' for 'input' tag
HTML input tag[^]
HTML Tutorial[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900