I have two collection_select in my list.rhtml:
<%= collection_select (:region, :id, @regionall, :id,
:title,html_options={:onChange => “new
Ajax.Updater(‘related_provinces’,’/categories/related_provinces/” +
“?id=’+this[this.selectedIndex].value,
{asynchronous:true, evalScripts:true});”}) %>
<%= render :partial => “related_provinces” %>
This is my partial:
_related_provinces.rhtml:
<%= collection_select(:region, :id, @provinces, :id, :title) %>
category_controller.rb:
def list
@regionall = Region.find(:all, :conditions => [ “parent_id = ?”,
‘1’],:order=>“id”)
@provinces = Region.find(:all, :conditions => [ “parent_id = ?”,
@region.parent.id],:order=>“id”)
end
The problem is that it doesn’t even display the onChange javascript
code:
bla1
bla2 bla3blop1 blop2 blop3
Could you please tell me first why my JS code isn’t display and second
if the ajax update JS code is correct? 
Thanx in adance
Pat