Hi jason, try this => $("selectList").childElements()[index].selected=true
this will sets the value for your <selec> element. I hope this will work. Thanks Ashis On Tue, May 12, 2009 at 8:40 PM, Jason <jason.di...@gmail.com> wrote: > > Hello, > > I'm not sure if this is an IE problem or a Prototype problem. > > I am trying to set the value of a <select> list via the following > code; > > $('selectList').setValue('some_value'); > I get an error stating that this object does not support this property > or method. > > I have also tried these variants; > > $('selectList').value = 'some_value'; > $('selectList').selectedIndex = 0; > > Nothing seems to work. Anyone have any ideas? > > Thank you for your time, > Jason > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---