I've the following code working properly which opens a pdf downoloaded in the same window:
jQuery('<form action="'+ url +'" method="'+ (method||'post') +'">'+inputs+'</form>')
.appendTo('body').submit().remove();
I'd like open the pdf in a new tab or window.. How can I change the appendTo in order to achieve it?
Thanks in advance!!