Attached in the code has two parts, one would show how to post all selected values, and the other part would show where I am stuck right now.
In part one, I have the name of my multi select box as an array, so on submit, all selected values are posted. In part two, I am creating a multi select box dynamically, and if I try to add the name as an array, I get a syntax error point towards the square brackets. Do we have a way around for this problem??
<form method="post" action="">
<select name=components multiple size=5>
<input type="submit" name="submit" value="us" />
newSelectorElm = document.createElement('select');
newSelectorElm.id = wName;
newSelectorElm.name = wName;
//newSelectorElm.name = wName;
newSelectorElm.multiple = true;