$(".button-to-export-search-excel").click(function(){
$(".button-to-export-search-excel").attr('href', window.location.pathname+'.xls'+window.location.search)
$(".button-to-export-search-excel").attr('target', 'blank');
});
追加属性
$("#statement_<%= @statement.id %>").after("<%= j(render 'match') %>").addClass('current_statement');