form_custom_elements.js error after dynamically loaded page
<p>We have some issues with form_custom_elements.js.
Part of the page is loaded dynamically through ajax and onclick event. All works good, but after clicking on next button, the JS apears: </p>

<p><strong>TypeError: inputs[b].previousSibling.style is undefined</strong> </p>

<p>and checkboxes we have on the page are missing, thus I assume, that the JS is not recognized.</p>

<pre><code>$('.next a, .prev a').live('click', function(){
    var parameters = '';
    var params = folder_id;

    var page = $(this).attr('href');
    parameters = {params:params,page:page};

    $.ajax({
        type: "POST",
        url: url,
        data: parameters,
        dataType: "json",

        success:  function(data) {

            if(data.success == 'yes'){

                $('.content').load('file.php', {imapEmails:data.emails});
            }
            else{
                alert('no');
            }
        }
    });
    return false;
});
</code></pre>

<p>file.php it is a div (thus doesn't have a 'head' section, where we call custom_form_elements.js, something like that, much more complicated, but just to show you:</p>

<pre><code>&lt;div id='content-inner'&gt;
&lt;input type="checkbox" name="a_checkbox" class="styled" /&gt;
this is a part of the page loaded
&lt;/div&gt;
</code></pre>

<p>FYI: if the JS file is working properly, a span tag is dynamically appended to the input:</p>

<pre><code>&lt;div id='content-inner'&gt;
   &lt;span class='checkbox'&gt;&lt;/span&gt;
   &lt;input type="checkbox" name="a_checkbox" class="styled" /&gt;
   this is a part of the page loaded
&lt;/div&gt;
</code></pre>

<p>how to solve this JS error and make page work properly? I tried to call Custom.init on div load, but it does not work.</p>
