this will give you the selected text if you want it.  you can probably 
figure out what you need from this example.

var grain = $('select#id_of_my_element option:selected').text();

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/BAM_jz5tsN8J.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to