i can use a command such as ->
window.document.demo.test.value = "updated1";
to update a text field in a form like ->
<input name="test" type="text">
However i want to start using array fields like ->
<input name="test[]" type="text">
But cant work out what i would need in javascript to do the same, any ideas?