(Fwd) Changing onchange event of <select> in JS
by "Rajnish Bhaskar" <r.bhaskar(at)educ.gla.ac.uk>
|
| Date: |
Thu, 10 Jun 2004 09:58:45 +0100 |
| To: |
hwg-languages(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
Hi folks,
I found an answer for my problem below. In case it's useful to
anyone, you can use something like this:
document.forms[0].control.onchange=function() { myfunction(foo);
}
Thanks to Roger Berland for pointing me to that.
Raj.
------- Forwarded message follows -------
From: "Rajnish Bhaskar" <r.bhaskar(at)educ.gla.ac.uk>
Organization: University of Glasgow
To: hwg-languages(at)hwg.org
Date sent: Fri, 14 May 2004 13:04:50 +0100
Subject: Changing onchange event of <select> in JS
Hi folks,
Is it possible to set the onChange event of a <select> box in
Javascript?
I'm creating select boxes on the fly in a table cell through
Javascript, but I need each newly generated box to have a
slightly
different onChange handler and I don't know how to go about doing
it.
Cheers,
Raj.
------- End of forwarded message -------
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.