I have a function where it appends individual text inputs from A -Z, True - False and Yes - No. Below is the code for each text input:\[code\]var $btn = $(btn);value = http://stackoverflow.com/questions/12810331/btn.value;id = $btn.attr('id');var n = $("input[name='value[" + id + "]']").length;var hid = "hidden" + id + n + "value"; $(btn).attr("data-hid", hid);if (!bDisableAppend) { // append those values to the form var input = '<input type="text" id="' + hid + '" value="' + value + '" name="value[' + id + ']" />'; _oCurrAnswerContainer.append(input);}\[/code\]The id you see above copies these id's below:\[code\]id="answerA" //Aid="answerB" //Bid="answerC" //Cid="answerD" //Did="answerE" //E....//etc\[/code\]Now what I am trying to achieve for each text input is that they have the same name but a different value in the [] to seperate them. For example:\[code\]Text Input A: name = "value[answerA]" value = "http://stackoverflow.com/questions/12810331/A"Text Input B: name = "value[answerB]" value = "http://stackoverflow.com/questions/12810331/B"Text Input C: name = "value[answerC]" value = "http://stackoverflow.com/questions/12810331/C"Text Input D: name = "value[answerD]" value = "http://stackoverflow.com/questions/12810331/D"...Text Input True: name = "value[answerTrue]" value = "http://stackoverflow.com/questions/12810331/True"Text Input False: name = "value[answerFalse]" value = "http://stackoverflow.com/questions/12810331/False"Text Input Yes: name = "value[answeYes]" value = "http://stackoverflow.com/questions/12810331/Yes"Text Input No: name = "value[answerNo]" value = "http://stackoverflow.com/questions/12810331/No"\[/code\]What my question is that will the code on top be able to give the same name attributes and values I have listed above or does it need tweaking?Here is a fiddle: http://jsfiddle.net/ybZvv/20/When you open fiddle, click on "Add Question" button to append a row and then select the letter buttons in there, you will see text inputs appearing underneath