[ic] selected tag

Ed LaFrance interchange-users@interchange.redhat.com
Tue Oct 30 11:46:01 2001


At 02:42 PM 10/30/2001 +0100, you wrote:
>Götz Verdieck <goetz.verdieck@com4office.de> writes:
>
> > Hi,
> > I think with my problem I'm back to the roots, but I can not solve it!
> >
> >
> > Every time the first entry (AK) will be shown up in the option list, 
> even if
> > I select AL !
> >
> > <SELECT NAME="state" onChange="this.form.submit()">
> >             <OPTION VALUE="AK" [selected state AK]>AK
> >             <OPTION VALUE="AL" [selected state AL]>AL
> >            </SELECT>
> > What am I doing wrong ?
> > I looked in the mail archive, but it seems that everybody uses the
> > selected tag with no problem.
> > I'm working on a mac. Is this a part of the problem ?
>
>Should work. What shows the HTML code. What is your form action ?
>BTW: You can leave out the value.
>
>Ciao
>         Racke

It sounds like the value of state is not being set on form submission. Put 
[value state] in a visible spot on the page, then change the state 
selection - does the value of [value state] match your choice when the page 
reloads?

- Ed L.


===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================