• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to sync select option with retrieved value in related text field

 
stephen r davidson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The above works swimmingly and the selected value is stored in the database via mvc magic when I submit the form.
But when I subsequently edit the row, the ruleSitiation shows the stored value, but the select option reverts to the first one. How can I sync the option with my ruleSitiation value?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add the selected attribute to the option that is to be selected.

P.S. You ought to lower case all of your HTML tags consistently.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!