Put the fancybox . On the site page there is a form, with which a window should fancybox on the fancybox with a new form, and it is necessary to transfer the data entered in the first form to the second. Please tell js correct js code to implement this. The beginning is:

 $('#fast-order-form').submit(function() { jQuery.fancybox({ ......... }); return false; }); 

    1 answer 1

    Fancybox api

    There is a description of the events. You need event onStart. Therefore, the code will be.

     $('#fast-order-form').submit(function() { jQuery.fancybox({ onStart: function(){ //Здесь заполняете свою форму. } }); return false; }); 

    To collect data from the previous form use the serialize function.