[thelist] Select - forms

Chris Marsh chris at ecleanuk.com
Mon Mar 10 11:37:01 CST 2003


> i have a suggestion that's even more elegant and failproof.  read on.
>
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > onchange='document.formNAME.submit()'
> >
> > Then every time the selection is changed, the form will
> > be submitted.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
> since you're calling an event on a form element you can get
> access to the containing form using the "this" keyword.
>
> onchange="this.form.submit()"
>
> told ya it was better.

Any more elegant and it would be wearing a strapless silk evening dress
and giving me the eye :)

Regards*

Chris Marsh

*tip owed...




More information about the thelist mailing list