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

Triche Osborne wdlists at triche-osborne.com
Tue Apr 18 09:06:55 CDT 2006


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




More information about the Javascript mailing list