Spinner as HTML

RAG

Member
Licensed User
Longtime User
Hello

I try using a Spinner like in other languages combo.
In comparison in HTML the 'select' get a 'text' and 'value' the id in database.
I put a text in the items and a value correspond to a id in database
when i give the item selected by the user, i got the value instead text.

HTML:
<select name="select">
    <option value="cod1">Item 1</option>
    <option value="cod2">Item2</option>
  </select>

How can i do this using a Spinner?[/SIZE]
 

RAG

Member
Licensed User
Longtime User
This is one way of doing it, see attached sample.

Got it. The spinner has no "value" as in other languages, i need create another object as a "twin" of the spinner, in which the index coincide.
I appreciate the help =) I will do so.
 
Upvote 0
Top