$("#school_major_list").html('<%= escape_javascript( render :partial => 'department_list') %>'); $("#search_major_count").html("<%= @obj_count %>");