Using the code snippet

<select name="colName" onChange="getTablesUsing(this.value)">

to call the javascript function getTablesUsing(), I am not getting the value with IE.

I have used only an alert(this.value) in place of the getTablesUsing:

<select name="colName" onChange="alert(this.value)">

The result is blank.
I testing on a Macintosh, running VMFusion to test the IE environment and have always had success with the results. This has stumped me and any help will be greatly appreciated.

Not IE 8 is the version of browser I am using for this testing.

    Just to clarify your question. This works fine in IE8 on my PC

    <select onchange="alert(this.value)">
    <option value=Apple>Apple</option> 
    <option value=Orange>Orange</option>
    <option value=Pear>Pear</option>
    <option value=Grape>Grape</option>
    </select>

    The question is therefore:

    1) What version of IE does this not work on?
    2) What is a recommended workaround?

    Those are your questions.

      Can you post more of your SELECT element here? If you could post a small HTML page as an example, even, that would let us see what exactly you're trying and if we can duplicate it.

        The issue is that using

        <select onchange="alert(this.value)">
        <option value=Apple>Apple</option>
        <option value=Orange>Orange</option>
        <option value=Pear>Pear</option>
        <option value=Grape>Grape</option>
        </select>

        as shown by BuzzPHP above the windows environment is not passing the value "this.value" to alert on my system. I publish this to an ubantu virtual machine and it exhibits the same problem when viewed from a "REAL" windows machine. Somehow having the FireFox, Safari, Opera on the windows environment working but "IE 8" not working looks like I have to do something special for IE and Microsoft to work.

          Write a Reply...