Note that there are some explanatory texts on larger screens.

plurals
  1. POI can't serialize form from the object
    text
    copied!<p>I use <a href="http://andersonferminiano.com/jqueryscrollpagination/" rel="nofollow">scroll-pagination</a> as a plugin in my page, And I use form to pass value to url i'm fetching the result.</p> <p>After loaded new form will dynamically add to my page,and I want to serialize the new form to repete the progress with new page problem is, My code keep serialize the first form not the new one.</p> <p>This is my Jquery</p> <pre><code>$(function(){ var datastring=$(".passform").last().serialize(); $('#update').scrollPagination({ 'contentPage': 'post_update.php', 'contentData': { data : datastring }, 'scrollTarget': $(window), 'heightOffset': 10, 'beforeLoad': function(){ $('#loading').fadeIn(); }, 'afterLoad': function(elementsLoaded){ $('#loading').fadeOut(); var i = 0; $(elementsLoaded).fadeInWithDelay(); datastring=$(".passform",elementsLoaded).serialize(); //Here's the Problem:S } }); $.fn.fadeInWithDelay = function(){ var delay = 0; return this.each(function(){ $(this).delay(delay).animate({opacity:1}, 200); delay += 100; });};}); </code></pre> <p>This is my first form in main code</p> <pre><code>&lt;form id="passform" class="passform" name="passform"&gt; &lt;input name="totalpage" type="hidden" value="&lt;? echo($totalpage);?&gt;" /&gt; &lt;input name="nowpage" type="hidden" value="0" /&gt; &lt;input name="u_id" type="hidden" value="&lt;? echo($u_id);?&gt;" /&gt; &lt;/form&gt; </code></pre> <p>This is the new form that Dynamically add</p> <pre><code> &lt;form class="passform" id="passform" name="passform"&gt; &lt;input name="totalpage" type="hidden" value="&lt;? echo($totalpage);?&gt;" /&gt; &lt;input name="nowpage" type="hidden" value="&lt;? echo($nowpage);?&gt;" /&gt; &lt;input name="u_id" type="hidden" value="&lt;? echo($u_id);?&gt;" /&gt; &lt;/form&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload