replace_html does not qork in jQuery

Hi,

In my Rails application I have used jQuery instead of Prototype.

When I was using prototype I use,

render :update do |page|   page.replace_html :div_id, :partial => "partial_name" end

How can i do this with jQuery?

Thanks in advance, Srikanth J

use a js template. ie, if you are in the update action, create an update.js.erb and write the js function there

update.js.erb

$(‘#div_id’).html(‘<%= escape_javascript render(:partial => ‘partial_name’)%>’)

use a js template. ie, if you are in the update action, create an update.js.erb and write the js function there

Thanks a lot.. I will try this.