Wednesday, 15 May 2013

javascript - Dropdown List - Display Value Instead of Text -


I'm using dropdown list to change a combo box for dropdown text, I'm adding two columns I am displaying them as one who works fine. When they choose a column, I need to display the selected VALUE instead of the selected text, but I still need the text to show as selectable options

What An easy way to do this? Or alternatively how can I create a multi-column dropdown list and use one text as the selected text?

In my dropdown list, I have:

  Value Text 1 Option An Option 2 Option Two 3 Option  

When I If I select 'option one', then I need a dropdown text display to be '1'. Hopefully things make things quite clear.

If you are dynamically adding data to your combo box, then it is added to each record Specify one value for This means that in runtime, you get the dim string string = combo box 1. The selected values ​​can display when the text box displays in the combo box dropdown.


No comments:

Post a Comment