[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1007
  • Last Modified:

innerText does not work in Mozilla FF

Dear Experts,

I'm changing classic ASP web App so that it works in all Browsers.
The main issue is JavaScript and I use Mozilla Web Developer to track the JS errors.

I faced this problem:
I have a JS Function

<SELECT name="Agency" id="Agency" size=7 style="WIDTH:150px;" onChange="AgencySelected.innerText=Agency.options(selectedIndex).text">

And Mozilla Web Developer gives me Agency.Options is not a function.
How do I fix this?

Thank you!
0
snarinsky
Asked:
snarinsky
1 Solution
 
TechTiger007Commented:
Try
Agency.options[selectedIndex].text
Looks like script is assuming options to be a function because of the usage of bracket "()"
0
 
snarinskyAuthor Commented:
Thanks TechTiger007!
Works like a charm :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now