[thelist] One more Javascript question

Peter-Paul Koch gassinaumasis at hotmail.com
Thu Dec 12 19:11:01 CST 2002

>josh & ppk,
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > From: Peter-Paul Koch
> >
> > > Is there any way to revert a option value changed by
> > > Javascript back to the default (what you would see if
> > > you view the source of the page)?
> >
> > You might try the defaultValue property, but I'm not
> > sure if it works for options.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>up til very recently i thought this too.  however, upon checking i found
>that the select object does not have a defaultValue property.  try alerting
>it and see for yourself.

Actually I meant the defaultValue of the option, not of the select.

ppk, freelance web developer
Interaction, copywriting, JavaScript, integration
Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/
What shall we do with the W3C DOM?:

Tired of spam? Get advanced junk mail protection with MSN 8.

More information about the thelist mailing list