views:

24

answers:

1

I'm having an issue where if they type in a new Person, then select "M" or "F" from the dropdown, in the listbox, I want both to show resulting to "John Doe M" with the example code:

<div class="editor-field">
     <%= Html.ListBox("personList")%> 
</div>

<%= Html.TextBox("newPerson")%>&nbsp;
     <select name="personInfo">
          <option value="Male">M</option>
          <option value="Female">F</option>
     </select>
A: 

I have almost no idea what you are asking, but I'm bored and a glutton for punishment so I tried. Are you trying to do something like the following -

http://jsfiddle.net/k3BrN/

HurnsMobile