how can i get two values from one select option?

user3721272

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.

xdazz

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I show values from two tables with one SELECT command in SQL?

From Dev

How can i get the values of from and two from the character

From Dev

How can I get two threads to read from one inputStream?

From Dev

How can I get values from two observables sequentially?

From Dev

How can I get a tuple from a list by one of the values?

From Dev

how can i select item from option menu if i have one item

From Dev

How can I select from items from two tables with one item only have one value

From Dev

(Vue.js) How can I populate the select tag with option tag from array of number values in data?

From Dev

How can i get text option from AJAX generated select dropdown using jQuery?

From Dev

How to get values from select option of array of arrays in php?

From Dev

How to get a values from array and display as select list option

From Dev

How to get all selected values from multiple select option?

From Dev

How can I get value when click option in the select on vue?

From Dev

MySQL How can I select data from two tables so that rows from the second one overwrote those from the first one?

From Dev

How do I insert two values in mysql with just one select?

From Dev

How can I get the values of selected 'Option' , to "A" and "B"?

From Dev

How can I select two different values from another table using only a single query?

From Dev

how to select distinct values from two tables limit to one row

From Dev

How i get a distinct values from two columns and make it one colunm

From Dev

How I get the text instead value from a select option in CodeIgniter

From Dev

get values and name from select option

From Dev

How can I join these two select queries into one query?

From Dev

How can I send two values with one button?

From Dev

How can I randomly generate one of two values for a string?

From Dev

How to get nested two values from nested select ? mysql

From Dev

How can I get the max value from one column where values match another column?

From Dev

I can not get values from table. Relationship one to many

From Dev

How to get two values from one, point free, in Haskell?

From Dev

How can I get value from one table and array of values from another join table in one mysql query?

Related Related

  1. 1

    How can I show values from two tables with one SELECT command in SQL?

  2. 2

    How can i get the values of from and two from the character

  3. 3

    How can I get two threads to read from one inputStream?

  4. 4

    How can I get values from two observables sequentially?

  5. 5

    How can I get a tuple from a list by one of the values?

  6. 6

    how can i select item from option menu if i have one item

  7. 7

    How can I select from items from two tables with one item only have one value

  8. 8

    (Vue.js) How can I populate the select tag with option tag from array of number values in data?

  9. 9

    How can i get text option from AJAX generated select dropdown using jQuery?

  10. 10

    How to get values from select option of array of arrays in php?

  11. 11

    How to get a values from array and display as select list option

  12. 12

    How to get all selected values from multiple select option?

  13. 13

    How can I get value when click option in the select on vue?

  14. 14

    MySQL How can I select data from two tables so that rows from the second one overwrote those from the first one?

  15. 15

    How do I insert two values in mysql with just one select?

  16. 16

    How can I get the values of selected 'Option' , to "A" and "B"?

  17. 17

    How can I select two different values from another table using only a single query?

  18. 18

    how to select distinct values from two tables limit to one row

  19. 19

    How i get a distinct values from two columns and make it one colunm

  20. 20

    How I get the text instead value from a select option in CodeIgniter

  21. 21

    get values and name from select option

  22. 22

    How can I join these two select queries into one query?

  23. 23

    How can I send two values with one button?

  24. 24

    How can I randomly generate one of two values for a string?

  25. 25

    How to get nested two values from nested select ? mysql

  26. 26

    How can I get the max value from one column where values match another column?

  27. 27

    I can not get values from table. Relationship one to many

  28. 28

    How to get two values from one, point free, in Haskell?

  29. 29

    How can I get value from one table and array of values from another join table in one mysql query?

HotTag

Archive