<%= ren...">

Content fades with jquery ajax update in Internet Explorer

I have a form that is wrapped in a div with id content:

<div id="content">
    <%= render :partial => 'shared/signup' %>
</div>

shared / _signup.html.erb contains:

<%= form_tag sign_me_up_path, :remote => true do %>
 ...
<% end %>

If the user submits the form and there are errors, I create a create.js.erb file that contains only:

$("#content").html("<%= escape_javascript(render :partial => 'shared/signup') %>");

With Internet explorer, this simply removes all content in #content, but works fine in all other browsers. I would appreciate any help / understanding.

+3
source share
2 answers

- , javascript-, html div JQuery (1.4.4). IE, , - HTML.

span. , - HTML .

+2

Source: https://habr.com/ru/post/1781720/


All Articles