Look ar this too... :
val1
val2
selected>val3
val4
By adding the selected constant in the option tag
you can define wich of the options that is selected as
default...
Einar A. Forselv
At 10:30 19.08.00 +0100, you wrote:
>I want to modify the selected value of the select
>s
Thakns a lot !!
It worked fine.. I will have to know the index for
using selectedIndex.. which I can hardly do if the
list is a bigger one ! but this worked fine..
Thanks.
--- Kanojia Jogesh <[EMAIL PROTECTED]>
wrote: > Hi
> Try this
> >
> >
> > val1
> > val2
> > val3
> > val4
, August 19, 2000 3:01 PM
To: [EMAIL PROTECTED]
Subject: change the "selected" option of select option
hello !
Sorry this is a bit off the topic.
I want to modify the selected value of the select
statement programatically. please help ..
here is what I tried to do :
val1
val
Hi
Try this
>
>
> val1
> val2
> val3
> val4
>
document.myform.D1.value="val3"
> onclick="change()">name="B2">
Hope this help You
Regards :-)
Kanojia Jogesh(Senior Web Developer)
IG Technologies Ltd,Mumbai
We are in Web Development and B2B and B2C Solution
Make it document.myform.D1.selected ="val3";
- Original Message -
From: Leena Diwan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 19, 2000 3:00 PM
Subject: change the "selected" option of select option
> hello !
>
> Sorry t
hello !
Sorry this is a bit off the topic.
I want to modify the selected value of the select
statement programatically. please help ..
here is what I tried to do :
val1
val2
val3
val4
function change(){
document.myform.D1.value="val3";
}
but this changes t