Is there a way in jQuery to create and submit a form on the fly.
Something like below.
Title Text Goe
Yes, it is possible. One of the solutions is below (jsfiddle as a proof).
HTML:
Submit form
(see, above there is no form)
JavaScript:
jQuery('#fire').click(function(event){
event.preventDefault();
var newForm = jQuery('
The above example shows you how to create form, how to add inputs and how to submit. Sometimes display of the result is forbidden by X-Frame-Options, so I have set target to _top, which replaces the main window's content. Alternatively if you set _blank, it can show within new window / tab.