jquery/javascript post to new window when pressing a preview button
<p>I want to have a form with two buttons, submit &amp; preview, the preview button should open a new window with the text from the input areas how do I make that happend?</p>

<pre><code>&lt;form method='post'&gt;
//input
&lt;input type='text' name='headline' id='headline' /&gt;
&lt;textarea name='content' id='content'&gt;&lt;/textarea&gt;
//buttons
&lt;input type='submit' id='btnsubmit' value='submit' /&gt;
&lt;input type='submit' id='btnpreview' value='preview' /&gt;
&lt;/form&gt;
</code></pre>

<p>I can't have target'_blank' in form because i have two buttons, and only one should open in a new window, i would like this to be done in jquery. can someone help.</p>
