Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #14101
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Mel Smith" <med_cutout_syntel@aol.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Accessing a <select> <option> ? |
| Date | Tue, 22 May 2012 13:43:46 -0600 |
| Lines | 42 |
| Message-ID | <a228jnFrgrU1@mid.individual.net> (permalink) |
| References | <a2273uFft7U1@mid.individual.net> |
| X-Trace | individual.net qClcJWQYTfHpBMu2FLFqUQUOpf6N/tBNiPDz7ZdPg/lcQNs+tgCkcP9i95cZfbJNIC |
| Cancel-Lock | sha1:IWNNvaLmfTxvdt7mIC258Dj/CTk= |
| 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; Response |
| Xref | csiph.com comp.lang.javascript:14101 |
Show key headers only | View raw
I said:
>
> 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>.
>
Hi:
I checked on FF, and Chrome, and it seems to work !
However, on IE7, it does not (at least my Alerts in the called function
do not display :(( )
I'll look further.
Thank you
-Mel
Back to comp.lang.javascript | Previous | Next — Previous in thread | 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