Each time the button is clicked I need this to increment the name='0fName' by one so the php script sees a unique name and does not overwrite the previous item.
$(document).ready(function(){
$('#addMember').click(function() {
for (var i = 0; i <= 6; i++);
console.log("addMember was called");
$("#addfamMember").append("<input type='text' name='0fName'>");
return false;
});
forloop.