Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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: 65826
134
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!