I’m trying to give the user ability to create customized list for my application,by insert his choices in text area field ,each line is treated as one choice using the \n (enter) as separator , i need to allow user to enter one choice in multiple lines,any one can help?
<textarea></textarea>
user enter :
aa
bb
cc
with enter in textarea, and then I’m processing them to split them at enter separator ,so i have three option in list :1-aa ,2-bb,and 3-cc ,but what i need to make aa ,bb is the first option, and cc second option ,i need new separator, i need more ideas?
This code will allow for the options to be entered on multiple lines and the options are created once you press Enter twice:
JavaScript
HTML
Tested in Firefox 3.6.3, Opera 10.53, IE 8 and Iron 5.0.380 .