Possible Duplicate:
transfer data from javascript popup multiline textbox to a select control
I would like to know if its possible to copy text (one per row), from textarea and move it to listbox with some foreach loop.
I have a textarea in a popup and a listbox where I want to put all the records from the textarea.
Please refer to the picture for more info.

Thanks in advance and I will really appreciate if someone helps me with this. Thanks, Laziale
Let’s say you want the list to be populated on the click of a button. Some sample markup for your button would be: