title: RJS error "object doesn't support this property " on element update
body: <p>I have the following code in the controller.
  I am populating a drop down box dynamically based on the selection from another drop down box.</p>
  
  <pre><code>def  update_releases 
    project = Project.find(params[:project_id]) 
    releases = project.releases
    puts "releases==#{releases}" 
    render :update do |page| 
    page.replace_html 'releases', :partial =&gt; 'releases', :object =&gt; releases 
  end 
  </code></pre>
  
  <p>view code:</p>
  
  <pre><code>-form_tag reports_path(report_type=1),:method =&gt; :get, :multipart =&gt; true ,:id =&gt; "filter" do  
  %table.grid.full
  %tr      
    %td.grid.full_panels{:style =&gt; "width: 20%"}
      Project:
    %td.grid.full_panels{:style =&gt; "width: 20%"}
      //= select_tag "projects",options_from_collection_for_select(projects,"id","name",params[:projects]),{:onchange =&gt; "#{remote_function(:url  =&gt; {:action =&gt; "update_releases"},:with =&gt; "'project_id='+value")}"} 
      = select_tag "projects",options_from_collection_for_select(projects,"id","name",params[:projects]), :class =&gt; "update_releases"
  
  
    %td.grid.full_panels{:style =&gt; "width: 20%"}
      Releases:
    %td.grid.full_panels{:style =&gt; "width: 20%"}
      &lt;div id="releases"&gt;
      = render :partial =&gt; 'releases', :object =&gt; @releases
    %td.grid.full_panels{:style =&gt; "width: 20%"}
      Cycles:
    %td.grid.full_panels{:style =&gt; "width: 20%"}
      &lt;div id="cycles"&gt;
      = render :partial =&gt; 'cycles', :object =&gt; @cycles
  
  %tr      
    %td.grid.full_panels{:style =&gt; "width: 20%"}
    %td.grid.full_panels{:style =&gt; "width: 20%"}
    %td.grid.full_panels{:style =&gt; "width: 20%"}
      =submit_tag "Submit"
  
  = javascript_include_tag "pages/ic"
  </code></pre>
  
  <p>partials code :
       = select_tag "releases",options_from_collection_for_select(releases,"id","name",params[:releases])</p>
  
  <p>Jquery:
        //change the releases drop down based on the selction of the projects drop down.</p>
  
  <pre><code>$('.update_releases').live("change", function(){
    $.ajaxSetup({beforeSend: function(xhr) {xhr.setRequestHeader("X-CSRF-Token", $("meta[name='csrf-token']").attr("content")); }});
    var project_id=($(this).val());
    $.post('/reports/update_releases', {project_id: project_id});
   return false;
  })
  </code></pre>
  
  <p>I am getting an error element doesn't support this property" as a pop up on chaning the selection in the drop down box. Please help me out here.</p>