I want to change the name of the input box. In the code I have the name start out at myText0 and I want the clones to be changing in increments of myText1, myText2, myText3, myText4... depending on the number of boxes added so that every input box is named differently. 

```
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<?php
$num = 0;
echo '
<div class="input_fields_wrap">
    <button class="add_field_button">Add More Fields</button>
    <div><input type="text" name="'.${'myText'.$num.}.'"></div>
</div>
';
?>

<script type="text/javascript">
$(document).ready(function() {
    var max_fields      = 10; //maximum input boxes allowed
    var wrapper         = $(".input_fields_wrap"); //Fields wrapper
    var add_button      = $(".add_field_button"); //Add button ID

    var x = 1; //initlal text box count
    $(add_button).click(function(e){ //on add input button click
        e.preventDefault();
        if(x < max_fields){ //max input box allowed
            x++; //text box increment
            //${myText.$num}
            // I don't know how to add this without php code to keep changing every added input box.
            $(wrapper).append('<div><input type="text" name="myText"/><a href="#" class="remove_field">Remove</a></div>').clone(true); //add input box
        }
    });

    $(wrapper).on("click",".remove_field", function(e){ //user click on remove text
        e.preventDefault(); $(this).parent('div').remove(); x--;
    })
});
</script>

```