Auto selecting an option in selection box
If possible how will this be done?
yes, but i would like to know which will be the event (the action of the user): onclick? On what? And how to youinput the values (the indexes of the options)? Are there static (preset) ot are to be input dynamically by the user in a way or another?
Can you detail a little bit?
What I am doing is as follow:
I have two selection boxes "A" and "B".
"A" is populated by a DB.
Now the user wil select a option (Name of a person) in "A".
The Second selection box "B" is then populated by the selections made in "A"
Now the user has selected the team (From "A" to "B") and wants to submit it.
On the form there is a buttun with a onClick event, this will then call the function thaat will select all the options in "B" and submit it.
Hope this awnsers the q.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<form action="" onsubmit="return selectAll(this)">
<select name="B" multiple>
<input name="sub" type="submit" value="GO">
Thanks Kor this realy helps
Take care, I have edited my post:
Originally Posted by gogelpot
(as initially I have written) will not work in Mozilla, so that I have corrected, and the crossbrowser correct syntax is:
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)