Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #14100
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Mel Smith" <med_cutout_syntel@aol.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Accessing a <select> <option> ? |
| Date | Tue, 22 May 2012 13:18:18 -0600 |
| Lines | 33 |
| Message-ID | <a2273uFft7U1@mid.individual.net> (permalink) |
| X-Trace | individual.net OnOmCmEiIynbq6X0Da5EyQDKCbQnCAfH9ltpcjjKFubOg/pIGehDNFH9CsNvMn09+Y |
| Cancel-Lock | sha1:6z2sgMlJLaVn/16sFf+Zd1cJJD0= |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| X-Newsreader | Microsoft Outlook Express 6.00.2900.5931 |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.00.2900.6157 |
| X-RFC2646 | Format=Flowed; Original |
| Xref | csiph.com comp.lang.javascript:14100 |
Show key headers only | View raw
Hi:
When a user clicks on an <option> (in one of my three <select> lists, I
wish to have a specific function executed.
In my body 'onload' property/function, I call a function -- part of
which is shown below
*********************
el = memberopts[i] ; // memberopts is an array
el.id = "imem" + el.value ; // place an 'ID' in this option
el.onclick = myfunc ; // this is my misunderstanding here :(((
// I'm guessing that I can't use 'onclick' here above, and I'm missing
something fundamental
// in my understanding of the properties of <option> (i.e., selected,
index, disabled, etc)
*************************
But, when I click on any option, the function myfunc() is not executed
??? (I put a simple alert in there and it does not show).
btw, I have a lot of behind-the-scenes stuff to do, when a user clicks
an <option> of a <select>.
Any suggestions please ??
Thank you.
--
Mel Smith
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Accessing a <select> <option> ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-05-22 13:18 -0600
Re: Accessing a <select> <option> ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-05-22 13:43 -0600
Re: Accessing a <select> <option> ? Matt McDonald <matt@fortybelow.ca> - 2012-05-22 14:43 -0600
Re: Accessing a <select> <option> ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-05-22 15:09 -0600
Re: Accessing a <select> <option> ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-05-22 20:26 -0600
Re: Accessing a <select> <option> ? SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-05-23 21:17 +0200
Re: Accessing a <select> <option> ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-05-23 13:42 -0600
Re: Accessing a <select> <option> ? "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-05-23 21:17 +0000
csiph-web