You are here: DEVPPL Forum Programming JavaScript Forum
NOTIFICATIONS
54.125
MEMBERS
15.697
TOPICS
62.285
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

Get Selected Items from HTML Listbox

0

Loading

Get Selected Items from HTML Listbox

Postby Sweoff » Thu Jan 18, 2007 11:22 pm

I'm trying to the selected items from a HTML list box and add them to a string and seperating them with an "~". Can help with this?
Sweoff
 
Reputation: 0
Posts: 1
Joined: Thu Jan 18, 2007 11:18 pm
Highscores: 0
Arcade winning challenges: 0

Get Selected Items from HTML Listbox - Sponsored results

Sponsored results

Login to get rid of ads

 

0

Loading

Postby Kevin » Mon Jan 22, 2007 9:22 am

<select id="myselect" onchange="AddToString()">
<option value="1">One</option>
<option value="2">Two</option>
</select>

Code: Select all

var str = ""

function AddToString(){
str += myselect.value + "~"
}
Kevin
 
Reputation: 0
Posts: 4
Joined: Fri Jan 19, 2007 9:22 am
Location: Malaysia
Highscores: 0
Arcade winning challenges: 0
^ Back to Top