I am trying to get a form to dynamicaly add hidden elements. Below is the
function I've created, basicaly it loops thru an array and attempts to add
those values to a newly created hidden input field which it then appends to
the form. I works in IE, but in NN7 nothing is passed.
function processAssortment(){
// get the form Element
var formElement=document.getElementById("candyBoxForm" );
//loop thru the candy box contents, add them to the form
for(var x=0;x<CandyBox.size;x++){
var stringNewEle = '<input type="hidden" name="'+'name_'+x+'"
value="'+CandyBox.BoxContents[x].id+'" id='+x+'>'
newField=document.createElement(stringNewEle);
formElement.appendChild(newField);
}
document.assortmentForm.submit();
}
Thank you
brooks