Displaying 3 results from an estimated 3 matches for "user_country".
Did you mean:
user_count
2008 Feb 27
2
observe_field not generating any script
...lt;% form_for :user, @user, :url => { :action => "create" } do |form| %>
<%= render :partial => ''form'', :locals => { :form => form, :genders
=> @genders} %>
<%= submit_tag "Create" %>
<%end%>
<% observe_field("user_country", :function => "alert(''Element
changed'')") %> <========= line of interest
<%end%>
which renders a partial, and includes a select with id "user_country"
The html for this is:
<select id="user_country" name="...
2006 Jun 16
4
Form magic
Didn''t know what else to call this subject, sorry.
Anyway this is more a general discovery question then a coding one.
Is it possible (and I already know it should be) to create forms where
depending on a particular choice in one select tag, one or another
select tags would be presented in the form.
As an example, a shopping site , where a dropdown has options of:
1-Men''s shoes
2006 Aug 10
5
RJS in Internet Explorer to update a list box
Hi,
I''m trying some RJS to update a series of list boxes in which the user
selects a state, and the following list gets updated with a list of
counties, and the same for the next list of areas.
My code works perfectly (albeit a bit slow) on Firefox, but on Internet
Explorer it clears the list box (instead of filling it) and Netscape
shows all the counties cramped together on one