I have a WebForm with dynamically created fields like:
name_1
name_2
name_3
Using JQuery it got them in a Object using something like:
var inputs = $('#'+formId).serializeArray();
$.each(inputs, function (i, input) {
formObj[input.name] = input.value;
});
Now I want to dynamically access the values in the formObject in a later step, but I'm stuck on how to access the variable names in a dynamic manner?
This and others did not work:
var name = formObj.name + '_' + index;
Any idea? Thanks.