i am working jquery+rails in view i sent data to contoller's
action and in that i action i tried to replace div with partial page
using following
def search_new
@manufact=Manufacturer.find_by_manufacturer_id(manf_id)
respond_to do |format|
format.html
format.js {
render(:update) {|page|
page << "$.("#search_new").html("<%=
escape_javascript(render(:partial => "search_new"))%>")"
}
}
end
end
but its not performing any action, could any one provide me solution ?