On Tue, Oct 27, 2009 at 10:59 PM, Jeppe Nejsum Madsen <[email protected]> wrote:
> David Pollak <[email protected]> writes:
>
>> What's the JavaScript to force the correct item to be selected?  I think we
>> could append the JavaScript to the ajaxSelectObj to force the right thing to
>> happen.
>
> For jQuery, something like $("#dropdown").val(2); should work. But the
> issue is that it should (ideally) only be done whenever the page is
> refreshed, not on initial load where everything works. Dunno if hurts to
> always force the selection.....
>
> /Jeppe

I tried to see if I could hack a POC for this, but I failed to see how
I can get the id's of the options that are generated by ajaxSelect.
This makes it hard to manipulate  client side :-)

/Jeppe

--~--~---------~--~----~------------~-------~--~----~
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