将多个克隆传递给ajax

I'm working on an ajax form and I have a question about the ability to pass all the clones of a field that have been created to and thru ajax over to php. I can take care of the php stuff just fine, I just need to get the all the variables that the clone produces.

Here's a sample of the code:

function GetHtml1() {
    var len = $('.extraAttribute').length;
    var $html = $('.extraAttributeTemplate').clone();
    $html.find('[name=attribute]')[0].name = "attribute" + len;
    return $html.html();
}

When someone clicks on the Add Attribute link, this is the clone field produced:

<input class="span3" placeholder="Attribute" type="text" id="attribute" name="attribute">

Thank you in advance.