How to append to each element?
<pre><code>var form_error = jQuery('&lt;div/&gt;').attr('class', 'input-error').append(jQuery('&lt;div/&gt;').attr('class', 'error-label'));
var registration_fields_list = jQuery('&lt;ul/&gt;');

jQuery.each(registration_fields, function(){
    var label = jQuery('&lt;label/&gt;').text(this.label);
    var field = null;

    field = jQuery('&lt;input/&gt;').attr({'name': this.input_name, 'class': this.input_class, 'type': (typeof this.type != 'undefined' ? this.type : 'text')});

    console.log(jQuery('&lt;li/&gt;').append(label, field, form_error));
});
</code></pre>

<p>I cant find the problem, but the thing is that <code>form_error</code> appends only to the last <code>li</code>, not to each. Where i am wrong?</p>
