innerText does not work in Mozilla FF

Posted on 2008-11-14
Last Modified: 2012-05-05
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!
Question by:snarinsky
    LVL 13

    Accepted Solution

    Looks like script is assuming options to be a function because of the usage of bracket "()"

    Author Comment

    Thanks TechTiger007!
    Works like a charm :)

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
    This article will show, step by step, how to integrate R code into a R Sweave document
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now