On Wed, Jan 18, 2006 at 09:43:45AM -0500, Michael Peters wrote:
> You could instead use Ajax.Request which would receive an XML doc which would
> contain the values you need. Then you can do something like this:
>
> $('id_of_city_field').value = city;
> $('id_of_state_dropdown').value = state;
But does that make that option selected?
Wouldn't I need to walk the options array and find the matching item
and then set the selected option?
$('id_of_select').selectedIndex = matching_index;
--
Bill Moseley
[EMAIL PROTECTED]
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs