I am updating DIV element on Onchange event of dropdown. And I am using partial to replace the content in the DIV. Here is my ajax call:
var cach_this = this;
$j.ajax({
url: url,
context: document.body,
complete: function(text,status){
cach_this.runtime_container[0].innerHTML = text.responseText;
}
});
url: is call to controllers method
And from controller it will render like this:
render :partial => "choose_by_all", :locals => {:uniq_id => params[:uniq_id]}, :layout => false
The partial content gets loaded perfectly, But inline javascript in partial dosen't execute.