Code is not executed after the jquery ajax complete event
<p>i have tried to execute some code inside the ajax complete event but it doesn't work on the page load event , but it works perfectly in the onchange link event</p>

<pre><code>$(document).ready(function() {
    $.ajax({
        beforeSend: function() {
         // Handle the beforeSend event
        },
        complete: function() {
            // Handle the complete event
            $("#customfields_1 :input").filter(function() {
                return $.trim(this.value).length === 0;
            }).closest("td").hide();
        }
       // ......
    });
});
</code></pre>
