Nm, I figured it out. I'm just using the enumeration value's id (index
in select field) and running this
JsCmds.Run(JE.JsRaw(
 
String.format("document.getElementById('%s').options[%s].selected=true",
domId, valueId.toString)).toJsCmd)

On Feb 13, 2:05 pm, Strom <[email protected]> wrote:
> Is there an easy way in lift to choose a select option value in a
> form? I have an ajax check box that's supposed to auto fill a form,
> but outside of looping, I don't know if there's a more practical way
> to do it.
>
> I was thinking I could assign each select option an id and then do it
> based on that, but if anyone has any experience with something more
> straightforward, it would be greatly appreciated.
>
> Strom

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.

Reply via email to