I am using document.createElement to create a hidden input element. All works well except for the fact that I cannot retrieve the value in an ASP page.
var objInputValue = document.createElement('input');
objInputValue.type = 'hidden';
objInputValue.id = arrSels[x].id;
Upon further reading MS says that the name attribute cannot set this way. I am using FF1.5/2 and IE6/7.
So I tried:
var objInputValue = document.createElement('<input type=\"hidden\" id=\"this\" name=\"this\" ');
This produces a INVALID_STRING client-side error. I cannot seem to get the syntax right for this line.
How the heck do I create a form field at runtime with JS and retrieve the value with ASP? Can ASP retrieve based on ID? I thought not as it uses named key in request collection...??