Hi - I have a view:
<% content_for(:page) do %>
New user
<% 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:
U.S.A.
nothing happens. I don’t see any javascript in the html file that is
generated, and no message appears when i change the country.
Any ideas?
thanks,
Dino