I'm new in web development, I want to get two values from select option. Is this possible?
HTML :
<select name="position">
<option>Select</option>
<option value="100">Postion One</option>
<option value="200">Postion Two</option>
<option value="300">Postion Three</option>
</select>
Basically I want to create dynamically layers
which will show on index page and positions are the alignment position. Above select positions are use as left position "left:_______"
. But I need left as well as top position. I get left position from select option but how can get top position. I want to use only one select option for position in my form. So is there possible to get two positions (values) from one select option. Please help me.
Use multiple
attribute, and change the name
to position[]
.
<select name="position[]" multiple size="2">
<option>Select</option>
<option value="100">Postion One</option>
<option value="200">Postion Two</option>
<option value="300">Postion Three</option>
</select>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments