("#preview").click(function() {
$("form").attr({action: "preview.php", target: "_blank"}).submit();
});
When click on the <input type="button" id="preview" />
I want to submit the preview to an other page.
The thing is, it is working but jquery open 2 times the same tab.
Thank you for your help