My current solution (which I'll freely admit is less-than-ideal) is this: <select name="foo"> <option value="A" py:attrs="selected=std.selector(foo=='A')">A</option> <option value="B" py:attrs="selected=std.selector(foo=='B')">B</option> </select>
Kevin On 10/27/05, william <[EMAIL PROTECTED]> wrote: > > How can I report easily the value of a <select> form object ? > > Imagine I have a select with 5 <options> (A,B,C,D,E) and the recorded > value is C. > What's the best method to put the famous selected="selected" in the > <option> corresponding to "C" ? > > - generating it in the controller the whole list of <options> (as a > string) ? > - making a loop in Kid ? > - ???? > > Personnally I don't like the 2 first possibilities, and I'll appreciate > a 3rd. > > Thanks > > -- Kevin Dangoor Author of the Zesty News RSS newsreader email: [EMAIL PROTECTED] company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com

