To change the SELECT, do the following:

$('field1').selectedIndex = n

Make sure the SELECT has an ID tag of 'field1'


On Jun 29, 6:27 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I assume Form.Element.getValue() is what I use to get the value of an
> input field, but how do I simply set the value of an input field to
> something else? I need to change the text of an input field and also
> change the selected option of a dropdown.
>
> Would someone be able to show me what I would use for this, or do I
> need to use bog-standard JS? seems strange...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to