What is the shortest way to create post form and submit it using jQuery?
<p>I have a button with attributes <code>data-url</code> and <code>data-parameter</code> and need to post that to controller. Thing is, that controller will return a redirect, so <code>$.post</code> not really helpful here, I'm thinking about creating form on the fly and submitting it.<br>
I think that is quite common task, but I couldn't find any shortcut on jQuery to do this, what would be the shortest/best way to do it?</p>
