I have two three text boxes.
<input type="text" name="test" value="100" />
<input type="text" name="test" value="250" />
<input type="text" name="totalList" value="" />
What I would like to happen is for the totalList textbox to have all the values of the textboxes before seperated by a comma, so its value would be 100, 250. The reason it is in an array is because I am going to be extracting from a database and I do not know how many items there will be, I just know they will all have a price.
Thanks in advance guys.
Use the array.join method.
http://jsfiddle.net/UqUMs/7/