PROTECTED]
Sent: 06 April 2005 16:24
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: change selected item in drop down list
Thanks for your answer Mark,
I am new with JavaScripts and I tried your example, but it does not
really work...
I tried to do
alert(options);
a
My code for this (written probably five years ago) looks very similar, but
maybe two versions would help...
function locateDDValue(drop_down, find_me) {
found_it = false;
for (i = 0; (i < drop_down.length) && !found_it; i++) {
if (drop_down.options[i].value == find_me) {
found_it = true;
Thanks for your answer Mark,
I am new with JavaScripts and I tried your example, but it does not
really work...
I tried to do
alert(options);
after
var options = form.elements['select'].options[i];
but nothing happend. What exactly is that line doing?
Thanks, Anja
Mark Benussi wrote:
Yes
Yes you can select an option in a selection, but you would need to know the
index of the option.
form.elements['select'].options[i].selected = true;
When generating the select using the html:options argument your presentation
layer wont have much knowledge of the data passed so you will have to
r
4 matches
Mail list logo