[Javascript] How can Imake document.FormName.level.selectedIndexwork in IE?

Dong, Roland Roland_Dong at parade.com
Tue Apr 18 09:08:48 CDT 2006


Thanks,  Triche and Paul,

I eventually use onChange on select. It works great.  Thanks so much!  
This is the best javascript list.

Roland


-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu] On Behalf Of Triche Osborne
Sent: Tuesday, April 18, 2006 10:07 AM
To: [JavaScript List]
Subject: Re: [Javascript] How can Imake
document.FormName.level.selectedIndexwork in IE?


Dong, Roland wrote:
> Thanks, Triche,
> 
> I realize this portion of the code is not working in IE but works in
> Firefox: 
> <option value="1" onMouseDown="goAlert(1)">Level 1</option>
> 
> I want the click on the option to trigger goAlert(). Any workaround?
> 

I'm sorry, Roland--I thought you were only looking for the correct 
syntax to call the option and neglected to be more explicit. Paul's 
right about the placement. I had attached the event to the SELECT with 
onchange, not to the OPTIONs.

Triche

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list