javascript - Dropdown-List - Multi-Selection should add text to Textbox in several Lines -


hello everybody! :)
i've made easy random drop-down-list on our "price-request-site" items in list sell our customers.
http://i.imgur.com/qg5jj0p.jpg
, because need request prices items, can select 1 or more items dropdown-list , output goes "simple textbox"

you have select 1 or more items dropdown-list , javascript should "paste" selected list-items textbox.
textbox part of "formular" send textbox-input e-mail.

my javascript following @ moment:
if click item list, item-name appears in text-box in first line. if click second or/and item, javascript overwrite existing "item/textline" first line in textbox.

http://i.imgur.com/9doy7cs.jpg"

i need following solution javascript , should easy possible:
when click item list, should added second line, when click item, should added in next (3rd) line...

background-information:
script should make easier customer write price-request-email us.
(without searching through shop , looking or article-numbers, instead can choose products dropdown-list output email-form/textbox)

function favsports() { var mylist=document.getelementbyid("mylist"); document.getelementbyid("favorite").value=mylist.options[mylist.selectedindex].text; } 

i happy if me issue, i'am new js :d


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -