what does .attr('name',$this.attr('name')) mean?
<p>Somebody posted me this code to me with a problem I had:</p>

<pre><code>         $('#txtWeight').each( function() {

 var $this = $(this);
 var $weightText = $("&lt;input type='text' class='txtWeightRow' maxlength='5' onkeypress='return isNumberKey(event)'/&gt;").attr('name',$this.attr('name'))
                 .attr('value',$this.val())

$weight.append($weightText).append('%');

});
</code></pre>

<p>What I want to know is what does <code>.attr('name',$this.attr('name'))</code>. Am I not going to be able to call my input to whatever name I want it to. Does this link the "name" with a previous "name"?</p>

<p>Thanks</p>
