I would like to tell you one small thing. You don't need :selected in any of the val() calls. for a select box, the val() method is wise enough to return the selected value.
Thanks & Regards, Dhruva Sagar. Joan Crawford<http://www.brainyquote.com/quotes/authors/j/joan_crawford.html> - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend." On Sat, Aug 29, 2009 at 9:54 PM, Quee Mm <rails-mailing-l...@andreas-s.net>wrote: > > The code works fine and does generate the three drop downs i think I am > missing the point where I can tell the code what the already :selected > value is. > > As i already said, when i do a new record, the code and the javascript > work just fine and give me the results that i need, now the edit is a > different story, for that all i get is three drop downs with 1980 - 2009 > as options in all three fields and it seems as if the javascript is not > present. > -- > Posted via http://www.ruby-forum.com/. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---