$('#new-course-group-enrollment').html('<%= j render("form") %>').slide(); $('#new-course-group-enrollment-link').hide(); $('.remote-form').enableValidations();