Hello,
I try to use observe_field with select
my code
<%= observe_field :pay_zones, :on => "changed", :url => sort_pays_distributeurs_path, :with => "'_method=put&tag='+element.id+'&value='+element.value" , :loading => "Element.show('indicator')", :complete => "Element.hide('indicator')" %>
<label><%= select :pay, :CodePays , @oPays.collect {|c| [ c.LibelleFr, c.id ] } , {:selected => nil , :prompt => "Choisissez votre Pays"}%></label>
but i have a javascript error
element has no properties
getValue(null)prototype.js (line 3484) getValue()prototype.js (line 3673) initialize("pay_zones", function())prototype.js (line 3637) klass()prototype.js (line 50) [Break on this error] var method = element.tagName.toLowerCase(); http://beta.expay.local/javascripts/prototype.js?1194877354 Line 3484
where is my error ?
thanks