I have a table with checkboxes on each row for different actions – one of them is print all, which generates a pdf.
Therefore I want to submit the form to a page that opens in a new tab. How can I achieve this?
var form = $("#formname");
var url = "url.php";
$.ajax({
type: "POST",
url: url,
data: form.serialize(),
success: function(data) {
//Success
}
});
3
Answers
In my opinion it would be easier to modify your HTML code like this:
In success block
Follow these steps: