. . , , , .
HTML, , , .
:
<option value=John Doe>John Doe</option>
It will only return the first word as the actually selected value, because space is actually an attribute delimiter in HTML; now you get the value "John" as the value, and "Doe" is considered as another (non-existent) HTML attribute.
It is right.
<option value="John Doe">John Doe</option>
This way you get the "John Doe" value as the value.
source
share