[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
http://www.xs4all.nl/~ppk/
Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/
What shall we do with the W3C DOM?:
http://www.evolt.org/article/What_shall_we_do_with_the_W3C_DOM/4090/47311/index.html
--------------------------------------------------


_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail




More information about the thelist mailing list