url += '&serialid=' + selected[i].value;
}
url += '&csv_profile=' + $("#csv_profile_for_export option:selected").val();
// And redirecting to the CSV page
location.href = url;
// Open download link in new window, then reload this page
window.open(url);
location.reload();
return false;
});
-